Fix issue with no airmode and full throttle destabilisation
This commit is contained in:
parent
dbdbd8724a
commit
41d8455b53
|
@ -605,7 +605,7 @@ void mixTable(pidProfile_t *pidProfile)
|
|||
throttle = 0.5f;
|
||||
}
|
||||
} else {
|
||||
if (isAirmodeActive()) { // Only automatically adjust throttle during airmode scenario
|
||||
if (isAirmodeActive() || throttle > 0.5f) { // Only automatically adjust throttle when airmode enabled. Airmode logic is always active on high throttle
|
||||
const float throttleLimitOffset = motorMixRange / 2.0f;
|
||||
throttle = constrainf(throttle, 0.0f + throttleLimitOffset, 1.0f - throttleLimitOffset);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue