private void button_LeftRotate_Click(object sender, RoutedEventArgs e) { if (commandAllowed) { ClientSocketConnection.SendMessage("5|0"); } }
private void button_TurnRight_Click(object sender, RoutedEventArgs e) { if (commandAllowed) { ClientSocketConnection.SendMessage("4|0"); } }
private void slider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e) { if (commandAllowed) { ClientSocketConnection.SendMessage("11|" + slider_ServoControl.Value); } }
private void button_Backwards_Click(object sender, RoutedEventArgs e) { if (commandAllowed) { ClientSocketConnection.SendMessage("2|0"); } }
private void radioButton_RLedOn_Checked(object sender, RoutedEventArgs e) { if (commandAllowed) { ClientSocketConnection.SendMessage("10|1"); this.UiRLed.Fill = new SolidColorBrush(Colors.Red); } }
private async void button_Ultrasonic_Click(object sender, RoutedEventArgs e) { if (commandAllowed) { ClientSocketConnection.SendMessage("12|0"); //txtUltrasonic.Text += await ClientSocketConnection.GetData() + "\n"; } }
public bool SendMsgUMDAPI(manifestRequest req) { if (IsConnectedAPI == ConnectState.Connected) { return(umdSrv.SendMessage(req)); } else { return(false); } }
public bool SendMsgWinsys(manifestRequest req) { if (IsConnectedWinSys == ConnectState.Connected) { return(winSys.SendMessage(req)); } else { return(winSys.Connect()); } }
private void radioButton_RLedOff_Checked(object sender, RoutedEventArgs e) { if (commandAllowed) { ClientSocketConnection.SendMessage("10|0"); if (UiRLed != null) { this.UiRLed.Fill = new SolidColorBrush(Colors.Gray); } } }
private void SetLeftMotorSpeed(object sender, object e) { if (commandAllowed) { ClientSocketConnection.SendMessage("7|" + slider_LeftMotorSpeed.Value); if (this.checkBox_SyncLeftRightSpeed.IsChecked.Value) { ClientSocketConnection.SendMessage("8|" + slider_RightMotorSpeed.Value); } _timer.Stop(); _timer.Tick -= SetLeftMotorSpeed; } }
public void RightButton() { Debug.Log("Right Button"); client.SendMessage("4|0"); }