Copter: disarm motors when entering CLI

This commit is contained in:
Randy Mackay 2013-03-21 12:07:00 +09:00
parent dcf21eee8f
commit 80bd593814
1 changed files with 6 additions and 0 deletions

View File

@ -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();
}