mirror of https://github.com/ArduPilot/ardupilot
Copter: disarm motors when entering CLI
This commit is contained in:
parent
dcf21eee8f
commit
80bd593814
|
@ -60,6 +60,12 @@ static void run_cli(AP_HAL::UARTDriver *port)
|
|||
// disable main_loop failsafe
|
||||
failsafe_disable();
|
||||
|
||||
// cut the engines
|
||||
if(motors.armed()) {
|
||||
motors.armed(false);
|
||||
motors.output();
|
||||
}
|
||||
|
||||
while (1) {
|
||||
main_menu.run();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue