private void Disconnect() { if (!droneControl.IsConnected) { return; } timerVideoUpdate.Stop(); droneControl.Disconnect(); UpdateUISync("Disconnecting from the drone"); }
private void Disconnect() { timerHudStatusUpdate.Stop(); timerVideoUpdate.Stop(); if (videoRecorder != null && videoRecorder.IsVideoCaptureRunning) { videoRecorder.EndVideo(); } droneControl.Disconnect(); UpdateUISync("Disconnecting from drone"); }
private void Disconnect() { if (!droneControl.IsConnected) { return; } if (droneInAir) { Land(); } //timerVideoUpdate.Stop(); currentStatusMsg = "Disconnecting from Drone..."; droneControl.Disconnect(); //UpdateUISync("Disconnecting from the drone"); }