示例#1
0
        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");
        }
示例#2
0
        private void Land()
        {
            Command landCommand = new FlightModeCommand(DroneFlightMode.Land);

            if (!droneControl.IsCommandPossible(landCommand))
                return;

            droneControl.SendCommand(landCommand);
            UpdateUIAsync("Landing");
        }
示例#3
0
        private void Emergency()
        {
            Command emergencyCommand = new FlightModeCommand(DroneFlightMode.Emergency);

            if (!droneControl.IsCommandPossible(emergencyCommand))
                return;

            droneControl.SendCommand(emergencyCommand);
            UpdateUIAsync("Sending emergency signal");
        }
示例#4
0
        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");
        }
示例#5
0
        private void Takeoff()
        {
            Command takeOffCommand = new FlightModeCommand(DroneFlightMode.TakeOff);

            if (!droneControl.IsCommandPossible(takeOffCommand))
                return;

            droneControl.SendCommand(takeOffCommand);
            UpdateUIAsync("Taking off");
        }
示例#6
0
        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");
        }
示例#7
0
        public void Emergency()
        {
            Command emergencyCommand = new FlightModeCommand(DroneFlightMode.Emergency);

            if (!droneControl.IsCommandPossible(emergencyCommand))
                return;

            droneControl.SendCommand(emergencyCommand);
            UpdateUIAsync("Avarinis nusileidimas");
        }
示例#8
0
        public void Land()
        {
            Command landCommand = new FlightModeCommand( DroneFlightMode.Land );

            if( !_droneControl.IsCommandPossible( landCommand ) )
                return;

            _droneControl.SendCommand( landCommand );
        }
示例#9
0
        public void Takeoff()
        {
            Command takeOffCommand = new FlightModeCommand( DroneFlightMode.TakeOff );

            if( !_droneControl.IsCommandPossible( takeOffCommand ) )
                return;

            _droneControl.SendCommand( takeOffCommand );
        }
示例#10
0
        public void Emergency()
        {
            Command emergencyCommand = new FlightModeCommand( DroneFlightMode.Emergency );

            if( !_droneControl.IsCommandPossible( emergencyCommand ) )
                return;

            _droneControl.SendCommand( emergencyCommand );
        }
示例#11
0
        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 );
        }
示例#12
0
        private void Takeoff()
        {
            Command takeOffCommand = new FlightModeCommand(DroneFlightMode.TakeOff);

            if (!droneXontrol.IsCommandPossible(takeOffCommand))
                return;

            droneXontrol.SendCommand(takeOffCommand);
        }
示例#13
0
        private void Land()
        {
            Command landCommand = new FlightModeCommand(DroneFlightMode.Land);

            if (!droneXontrol.IsCommandPossible(landCommand))
                return;

            droneXontrol.SendCommand(landCommand);
        }
示例#14
0
        private void Emergency()
        {
            Command emergencyCommand = new FlightModeCommand(DroneFlightMode.Emergency);

            if (!droneXontrol.IsCommandPossible(emergencyCommand))
                return;

            droneXontrol.SendCommand(emergencyCommand);
        }
示例#15
0
        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");
        }
示例#16
0
        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");
        }