예제 #1
0
        private void BtnAudioRecord_Click(object sender, RoutedEventArgs e)
        {
            // Send selected Wave to Drone
            // Not working for the moment
            //MessageBox.Show("Not Working for the moment"); return;
            string item = cbxSounds.SelectedItem.ToString();

            if (!string.IsNullOrEmpty(item))
            {
                controller.StreamAudioToDrone(item);
            }
            FakeTxtBox.Focus();
        }
예제 #2
0
 private void cbxWifiBand_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     controller.setWifiBand((SumoEnumGenerated.WifiSelection_band)cbxWifiBand.SelectedItem);
     FakeTxtBox.Focus();
 }
예제 #3
0
 private void ChkBowl_Unchecked(object sender, RoutedEventArgs e)
 {
     controller.AddCapabilities(SumoInformations.Capability.Jump);
     InitUI();
     FakeTxtBox.Focus();
 }
예제 #4
0
 private void BtnAudioStreamOff_Click(object sender, RoutedEventArgs e)
 {
     controller.SetAudioDroneTX(false);
     FakeTxtBox.Focus();
 }
예제 #5
0
 private void SlLight_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     // Send Light level to Drone
     controller.Headlight_Value(e.NewValue);
     FakeTxtBox.Focus();
 }
예제 #6
0
 private void TxtBox_GotFocus(object sender, RoutedEventArgs e)
 {
     FakeTxtBox.Focus();
 }
예제 #7
0
 private void CbxAudioTheme_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     controller.SetAudioTheme((SumoEnumGenerated.Theme_theme)cbxAudioTheme.SelectedItem);
     FakeTxtBox.Focus();
 }
예제 #8
0
 private void SlVolume_DragCompleted(object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e)
 {
     controller.ChangeVolume((byte)slVolume.Value);
     FakeTxtBox.Focus();
 }
예제 #9
0
 private void BtnSTOP_Click(object sender, RoutedEventArgs e)
 {
     controller.STOP();
     FakeTxtBox.Focus();
 }
예제 #10
0
 private void BtnCancelJump_Click(object sender, RoutedEventArgs e)
 {
     controller.CancelJump();
     FakeTxtBox.Focus();
 }
예제 #11
0
 private void BtnKick_Click(object sender, RoutedEventArgs e)
 {
     controller.JumpLoad();
     FakeTxtBox.Focus();
 }
예제 #12
0
 private void BtnHighJump_Click(object sender, RoutedEventArgs e)
 {
     controller.StartJump(LibSumo.Net.Protocol.SumoEnumGenerated.Jump_type.high);
     FakeTxtBox.Focus();
 }
예제 #13
0
 private void BtnDisconnect_Click(object sender, RoutedEventArgs e)
 {
     controller.Disconnect();
     FakeTxtBox.Focus();
 }