From c3f90e567f00824469a4c9d84ea469c7e15d5f80 Mon Sep 17 00:00:00 2001 From: phobos- Date: Sat, 2 Jan 2021 12:55:43 +0100 Subject: [PATCH] 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 229dfed4a8..0439e37d36 100644 --- a/src/main/flight/mixer.c +++ b/src/main/flight/mixer.c @@ -253,7 +253,7 @@ static void calculateThrottleAndCurrentMotorEndpoints(timeUs_t currentTimeUs) DEBUG_SET(DEBUG_BATTERY, 2, batteryGoodness * 100); DEBUG_SET(DEBUG_BATTERY, 3, motorRangeAttenuationFactor * 1000); } - motorRangeMax = mixerRuntime.motorOutputHigh - motorRangeAttenuationFactor * (mixerRuntime.motorOutputHigh - mixerRuntime.motorOutputLow); + motorRangeMax = isFlipOverAfterCrashActive() ? mixerRuntime.motorOutputHigh : mixerRuntime.motorOutputHigh - motorRangeAttenuationFactor * (mixerRuntime.motorOutputHigh - mixerRuntime.motorOutputLow); #else motorRangeMax = mixerRuntime.motorOutputHigh; #endif