mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Remove re-calculations // Increase minimum
This commit is contained in:
parent
ee7e99f2e5
commit
3bd8c467c4
1 changed files with 3 additions and 2 deletions
|
@ -787,8 +787,9 @@ void mixTable(void)
|
||||||
bool isFailsafeActive = failsafeIsActive(); // TODO - Find out if failsafe checks are really needed here in mixer code
|
bool isFailsafeActive = failsafeIsActive(); // TODO - Find out if failsafe checks are really needed here in mixer code
|
||||||
|
|
||||||
if (motorLimitReached) {
|
if (motorLimitReached) {
|
||||||
for (axis = 0; axis < 3; axis++) axisPID[axis] *= constrain(qPercent(mixReduction), 10, 100) / 100;
|
uint8_t pidAttenuation = constrain(qPercent(mixReduction), 20, 100);
|
||||||
if (debugMode == DEBUG_AIRMODE) debug[0] = qPercent(mixReduction);
|
for (axis = 0; axis < 2; axis++) axisPID[axis] *= pidAttenuation / 100;
|
||||||
|
if (debugMode == DEBUG_AIRMODE) debug[0] = pidAttenuation;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_RC_MODE_ACTIVE(BOXACROPLUS)) {
|
if (IS_RC_MODE_ACTIVE(BOXACROPLUS)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue