mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
disabled voltage sag compensation in crash flip mode
This commit is contained in:
parent
932d6dc153
commit
c3f90e567f
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ static void calculateThrottleAndCurrentMotorEndpoints(timeUs_t currentTimeUs)
|
||||||
DEBUG_SET(DEBUG_BATTERY, 2, batteryGoodness * 100);
|
DEBUG_SET(DEBUG_BATTERY, 2, batteryGoodness * 100);
|
||||||
DEBUG_SET(DEBUG_BATTERY, 3, motorRangeAttenuationFactor * 1000);
|
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
|
#else
|
||||||
motorRangeMax = mixerRuntime.motorOutputHigh;
|
motorRangeMax = mixerRuntime.motorOutputHigh;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue