From 1662f9f659e7fd64aabde686a6b1a2aba2ad8915 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Sun, 3 Jan 2021 14:59:53 +0100 Subject: [PATCH] Merge pull request #10442 from phobos-/vbat-crashflip-fix Disabled voltage sag compensation in crash flip mode --- 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 f422e55b6f..d0bda98988 100644 --- a/src/main/flight/mixer.c +++ b/src/main/flight/mixer.c @@ -654,7 +654,7 @@ static void calculateThrottleAndCurrentMotorEndpoints(timeUs_t currentTimeUs) DEBUG_SET(DEBUG_BATTERY, 2, batteryGoodness * 100); DEBUG_SET(DEBUG_BATTERY, 3, motorRangeAttenuationFactor * 1000); } - motorRangeMax = motorOutputHigh - motorRangeAttenuationFactor * (motorOutputHigh - motorOutputLow); + motorRangeMax = isFlipOverAfterCrashActive() ? motorOutputHigh : motorOutputHigh - motorRangeAttenuationFactor * (motorOutputHigh - motorOutputLow); #else motorRangeMax = motorOutputHigh; #endif