From a76d956358c82f3bc07bdf7ca9ff945248ddc578 Mon Sep 17 00:00:00 2001 From: codepox Date: Tue, 7 Jul 2015 18:53:11 -0400 Subject: [PATCH] Fixed a bug: in 3D mode to stop the motors, send neutral3d value to the ESCs instead of mincommand. This was causing the motors to go full negative for a short time everytime I left the CLI mode tab in the Configurator GUI. --- src/main/flight/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/flight/mixer.c b/src/main/flight/mixer.c index f0ec7ff72..1e58796ec 100755 --- a/src/main/flight/mixer.c +++ b/src/main/flight/mixer.c @@ -534,7 +534,7 @@ void writeAllMotors(int16_t mc) void stopMotors(void) { - writeAllMotors(escAndServoConfig->mincommand); + writeAllMotors(feature(FEATURE_3D) ? flight3DConfig->neutral3d : escAndServoConfig->mincommand); delay(50); // give the timers and ESCs a chance to react. }