private void SendOutisdeOff() { Command sendOutsideOff = new SetConfigurationCommand("CONTROL:outdoor", "FALSE"); if (!droneControl.IsCommandPossible(sendOutsideOff)) return; droneControl.SendCommand(sendOutsideOff); UpdateUIAsync("Outside mode off"); }
private void SendOutisdeOff() { Command sendOutsideOff = new SetConfigurationCommand("control:outdoor", "FALSE"); if (!droneControl.IsCommandPossible(sendOutsideOff)) return; droneControl.SendCommand(sendOutsideOff); UpdateUIAsync("Outside mode off"); Command video = new SetConfigurationCommand("video:camif_fps", "60"); // Read-only? pg 81 if (!droneControl.IsCommandPossible(video)) return; droneControl.SendCommand(sendOutsideOff); UpdateUIAsync("Video FPS: 60"); Command shellcmd = new SetConfigurationCommand("control:flight_without_shell", "FALSE"); if (!droneControl.IsCommandPossible(shellcmd)) return; droneControl.SendCommand(sendOutsideOff); UpdateUIAsync("Outdoor Hull Enabled"); Command altcmd = new SetConfigurationCommand("control:altitude_max", "5000"); if (!droneControl.IsCommandPossible(altcmd)) return; droneControl.SendCommand(sendOutsideOff); UpdateUIAsync("Max Altitude: 5m"); }