/// <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); }
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()); }
public void setWifiBand(SumoEnumGenerated.WifiSelection_band band) { sender.Send(SumoCommandsGenerated.NetworkSettings_WifiSelection_cmd(SumoEnumGenerated.WifiSelection_type.auto, band, 0)); }
public void CancelJump() { this.sender.Send(SumoCommandsGenerated.Animations_JumpCancel_cmd()); // Commands.CancelJump_cmd()); }
public void SetProductName(string name) { this.sender.Send(SumoCommandsGenerated.Settings_ProductName_cmd(name)); }
internal void DisableVideo() { this.sender.Send(SumoCommandsGenerated.MediaStreaming_VideoEnable_cmd(0)); // Commands.Set_media_streaming_cmd(false)); }
public void Headlight_off() { this.sender.Send(SumoCommandsGenerated.Headlights_intensity_cmd(0, 0)); // Commands.Set_Headlight(0, 0)); }
public void Headlight_Value(double newValue) { byte v = (byte)Convert.ToUInt16(newValue); this.sender.Send(SumoCommandsGenerated.Headlights_intensity_cmd(v, v)); }
public void STOP() { this.sender.Send(SumoCommandsGenerated.Animations_JumpStop_cmd()); // Commands.STOP_cmd()); }
public void StartBoost() { this.sender.Send(SumoCommandsGenerated.Animations_StartAnimation_cmd(SumoEnumGenerated.StartAnimation_anim.BOOST)); }
public void JumpLoad() { this.sender.Send(SumoCommandsGenerated.Animations_JumpLoad_cmd()); // Commands.JumpLoading_cmd()); }
/// <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)); }
public void SetAudioTheme(SumoEnumGenerated.Theme_theme AudioTheme) { this.sender.Send(SumoCommandsGenerated.AudioSettings_Theme_cmd(AudioTheme)); // Commands.AudioTheme_cmd(AudioTheme)); }
public void ChangeVolume(byte Volume) { this.sender.Send(SumoCommandsGenerated.AudioSettings_MasterVolume_cmd(Volume));// Commands.Volume_cmd(Volume)); }
/// <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)); }
/// <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)); }
/// <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)); }