mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Merge pull request #10442 from phobos-/vbat-crashflip-fix
Disabled voltage sag compensation in crash flip mode
This commit is contained in:
parent
803ec04ed4
commit
1662f9f659
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,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 = motorOutputHigh - motorRangeAttenuationFactor * (motorOutputHigh - motorOutputLow);
|
motorRangeMax = isFlipOverAfterCrashActive() ? motorOutputHigh : motorOutputHigh - motorRangeAttenuationFactor * (motorOutputHigh - motorOutputLow);
|
||||||
#else
|
#else
|
||||||
motorRangeMax = motorOutputHigh;
|
motorRangeMax = motorOutputHigh;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue