mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
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
Block a user