private void FlatTrim() { Command resetCommand = new FlightModeCommand(DroneFlightMode.Reset); Command flatTrimCommand = new FlatTrimCommand(); if (!droneControl.IsCommandPossible(resetCommand) || !droneControl.IsCommandPossible(flatTrimCommand)) return; droneControl.SendCommand(resetCommand); droneControl.SendCommand(flatTrimCommand); UpdateUIAsync("Sending flat trim"); }
private void Land() { Command landCommand = new FlightModeCommand(DroneFlightMode.Land); if (!droneControl.IsCommandPossible(landCommand)) return; droneControl.SendCommand(landCommand); UpdateUIAsync("Landing"); }
private void Emergency() { Command emergencyCommand = new FlightModeCommand(DroneFlightMode.Emergency); if (!droneControl.IsCommandPossible(emergencyCommand)) return; droneControl.SendCommand(emergencyCommand); UpdateUIAsync("Sending emergency signal"); }
public void FlatTrim() { Command resetCommand = new FlightModeCommand(DroneFlightMode.Reset); Command flatTrimCommand = new FlatTrimCommand(); if (!droneControl.IsCommandPossible(resetCommand) || !droneControl.IsCommandPossible(flatTrimCommand)) return; droneControl.SendCommand(resetCommand); droneControl.SendCommand(flatTrimCommand); UpdateUIAsync("Stabilizuoti"); }
private void Takeoff() { Command takeOffCommand = new FlightModeCommand(DroneFlightMode.TakeOff); if (!droneControl.IsCommandPossible(takeOffCommand)) return; droneControl.SendCommand(takeOffCommand); UpdateUIAsync("Taking off"); }
private void Emergency() { Command emergencyCommand = new FlightModeCommand(DroneFlightMode.Emergency); if (droneControl.droneVersion == 1) { if (!droneControl.IsCommandPossible(emergencyCommand)) //Because the Emergency function only turns off on the AR2.0 - don't know about the AR 1, but i want to be able to un-set the emergency :) return; } droneControl.SendCommand(emergencyCommand); UpdateUIAsync("Sending emergency signal"); }
public void Emergency() { Command emergencyCommand = new FlightModeCommand(DroneFlightMode.Emergency); if (!droneControl.IsCommandPossible(emergencyCommand)) return; droneControl.SendCommand(emergencyCommand); UpdateUIAsync("Avarinis nusileidimas"); }
public void Land() { Command landCommand = new FlightModeCommand( DroneFlightMode.Land ); if( !_droneControl.IsCommandPossible( landCommand ) ) return; _droneControl.SendCommand( landCommand ); }
public void Takeoff() { Command takeOffCommand = new FlightModeCommand( DroneFlightMode.TakeOff ); if( !_droneControl.IsCommandPossible( takeOffCommand ) ) return; _droneControl.SendCommand( takeOffCommand ); }
public void Emergency() { Command emergencyCommand = new FlightModeCommand( DroneFlightMode.Emergency ); if( !_droneControl.IsCommandPossible( emergencyCommand ) ) return; _droneControl.SendCommand( emergencyCommand ); }
public void FlatTrim() { Command resetCommand = new FlightModeCommand( DroneFlightMode.Reset ); Command flatTrimCommand = new FlatTrimCommand(); if( !_droneControl.IsCommandPossible( resetCommand ) || !_droneControl.IsCommandPossible( flatTrimCommand ) ) return; _droneControl.SendCommand( resetCommand ); _droneControl.SendCommand( flatTrimCommand ); }
private void Takeoff() { Command takeOffCommand = new FlightModeCommand(DroneFlightMode.TakeOff); if (!droneXontrol.IsCommandPossible(takeOffCommand)) return; droneXontrol.SendCommand(takeOffCommand); }
private void Land() { Command landCommand = new FlightModeCommand(DroneFlightMode.Land); if (!droneXontrol.IsCommandPossible(landCommand)) return; droneXontrol.SendCommand(landCommand); }
private void Emergency() { Command emergencyCommand = new FlightModeCommand(DroneFlightMode.Emergency); if (!droneXontrol.IsCommandPossible(emergencyCommand)) return; droneXontrol.SendCommand(emergencyCommand); }
private void Takeoff() { if (droneInAir) return; Command takeOffCommand = new FlightModeCommand(DroneFlightMode.TakeOff); if (!droneControl.IsCommandPossible(takeOffCommand)) return; currentStatusMsg = "Initiating Drone take off.."; droneControl.SendCommand(takeOffCommand); Thread.Sleep(5000); droneInAir = true; //UpdateUIAsync("Taking off"); }
private void Land() { if (!droneInAir) return; Command landCommand = new FlightModeCommand(DroneFlightMode.Land); if (!droneControl.IsCommandPossible(landCommand)) return; currentStatusMsg = "Initialing Drone Landing..."; droneControl.SendCommand(landCommand); //this.DrawText(skeleton, drawingContext, "Landing"); }