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.
This commit is contained in:
codepox 2015-07-07 18:53:11 -04:00
parent 8a06849657
commit a76d956358
1 changed files with 1 additions and 1 deletions

View File

@ -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.
}