예제 #1
0
        public void ChangeCamera()
        {
            Command switchCameraCommand = new SwitchCameraCommand( DroneCameraMode.NextMode );

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

            _droneControl.SendCommand( switchCameraCommand );
        }
        private void ChangeCamera()
        {
            Command switchCameraCommand = new SwitchCameraCommand(DroneCameraMode.NextMode);

            if (!droneControl.IsCommandPossible(switchCameraCommand) || videoRecorder.IsVideoCaptureRunning)
                return;

            droneControl.SendCommand(switchCameraCommand);
            UpdateUIAsync("Changing camera");
        }