示例#1
0
        /// <summary>
        /// Private Set Audio Streram Direction if drone is capable
        /// </summary>
        /// <param name="DroneTX">Drone can send recorded audio</param>
        /// <param name="DroneRX">Drone can Speak Audio</param>
        private bool SetAudioStreamDirection(bool DroneRX, bool DroneTX)
        {
            byte data = Encodebool(new bool[] { false, false, false, false, false, false, DroneRX, DroneTX });

            this.sender.Send(SumoCommandsGenerated.Audio_ControllerReadyForStreaming_cmd(data));
            return(true);
        }
示例#2
0
 public void Init()
 {
     // Initial configuration
     this.Send(SumoCommandsGenerated.Common_CurrentDate_cmd(DateTime.Now.ToString("yyyy-MM-dd\0")));                    //this.Send(Commands.Sync_date_cmd());
     Thread.Sleep(25);
     this.Send(SumoCommandsGenerated.Common_CurrentTime_cmd(DateTime.Now.ToString("'T'HHmmsszzz\0").Replace(":", ""))); //this.Send(Commands.Sync_time_cmd());
     Thread.Sleep(25);
     this.Send(SumoCommandsGenerated.Common_AllStates_cmd());                                                           //this.Send(Commands.RequestAllStates_cmd());
     Thread.Sleep(25);
     this.Send(SumoCommandsGenerated.Settings_AllSettings_cmd());                                                       //this.Send(Commands.RequestAllConfig_cmd());
 }
示例#3
0
 public void setWifiBand(SumoEnumGenerated.WifiSelection_band band)
 {
     sender.Send(SumoCommandsGenerated.NetworkSettings_WifiSelection_cmd(SumoEnumGenerated.WifiSelection_type.auto, band, 0));
 }
示例#4
0
 public void CancelJump()
 {
     this.sender.Send(SumoCommandsGenerated.Animations_JumpCancel_cmd()); // Commands.CancelJump_cmd());
 }
示例#5
0
 public void SetProductName(string name)
 {
     this.sender.Send(SumoCommandsGenerated.Settings_ProductName_cmd(name));
 }
示例#6
0
 internal void DisableVideo()
 {
     this.sender.Send(SumoCommandsGenerated.MediaStreaming_VideoEnable_cmd(0)); // Commands.Set_media_streaming_cmd(false));
 }
示例#7
0
 public void Headlight_off()
 {
     this.sender.Send(SumoCommandsGenerated.Headlights_intensity_cmd(0, 0)); // Commands.Set_Headlight(0, 0));
 }
示例#8
0
        public void Headlight_Value(double newValue)
        {
            byte v = (byte)Convert.ToUInt16(newValue);

            this.sender.Send(SumoCommandsGenerated.Headlights_intensity_cmd(v, v));
        }
示例#9
0
 public void STOP()
 {
     this.sender.Send(SumoCommandsGenerated.Animations_JumpStop_cmd()); // Commands.STOP_cmd());
 }
示例#10
0
 public void StartBoost()
 {
     this.sender.Send(SumoCommandsGenerated.Animations_StartAnimation_cmd(SumoEnumGenerated.StartAnimation_anim.BOOST));
 }
示例#11
0
 public void JumpLoad()
 {
     this.sender.Send(SumoCommandsGenerated.Animations_JumpLoad_cmd()); // Commands.JumpLoading_cmd());
 }
示例#12
0
 /// <summary>
 /// a pre-programmed movement or acrobatics
 /// </summary>
 /// <param name="Animation"></param>
 public void StartAnimation(SumoEnumGenerated.SimpleAnimation_id Animation)
 {
     this.sender.Send(SumoCommandsGenerated.Animations_SimpleAnimation_cmd(Animation)); // Commands.Animation_cmd(Animation));
 }
示例#13
0
 public void SetAudioTheme(SumoEnumGenerated.Theme_theme AudioTheme)
 {
     this.sender.Send(SumoCommandsGenerated.AudioSettings_Theme_cmd(AudioTheme)); // Commands.AudioTheme_cmd(AudioTheme));
 }
示例#14
0
 public void ChangeVolume(byte Volume)
 {
     this.sender.Send(SumoCommandsGenerated.AudioSettings_MasterVolume_cmd(Volume));// Commands.Volume_cmd(Volume));
 }
示例#15
0
 /// <summary>
 /// Quick Turn
 /// </summary>
 /// <param name="Angle">in radian</param>
 /// <returns></returns>
 public void QuickTurn(float Angle)
 {
     this.sender.Send(SumoCommandsGenerated.Piloting_addCapOffset_cmd(Angle)); //  Commands.Turn_cmd(Angle));
 }
示例#16
0
 /// <summary>
 /// Start a Jump Action
 /// </summary>
 /// <param name="JumpType">enum[long, high]</param>
 public void StartJump(SumoEnumGenerated.Jump_type JumpType)
 {
     this.sender.Send(SumoCommandsGenerated.Animations_Jump_cmd(JumpType)); // Commands.Jump_cmd(JumpType));
 }
示例#17
0
 /// <summary>
 /// Set Sumo in Postures
 /// standing, jumper, kicker
 /// </summary>
 /// <param name="Posture">enum[standing, jumper, kicker]</param>
 public void ChangePostures(SumoEnumGenerated.Posture_type Posture)
 {
     this.sender.Send(SumoCommandsGenerated.Piloting_Posture_cmd(Posture)); // Commands.Postures_cmd(Posture));
 }