Fix issue with no airmode and full throttle destabilisation

This commit is contained in:
U-DESKTOP-12PPI61\boris.bozic 2017-05-23 13:18:42 +02:00
parent dbdbd8724a
commit 41d8455b53
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}