From 80bd593814975f24b1fe83d9a3cf7057817839b1 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 21 Mar 2013 12:07:00 +0900 Subject: [PATCH] Copter: disarm motors when entering CLI --- ArduCopter/system.pde | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index 2b27e5cdf8..e927a41f94 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -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(); }