1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Fixing missed multiwii scale factor accidentally removed from

432c43bab7 during merge.
This commit is contained in:
Dominic Clifton 2014-06-26 00:40:19 +01:00
parent 668772f1f3
commit 2150fb4a08

View file

@ -194,7 +194,7 @@ static void pidMultiWii(pidProfile_t *pidProfile, controlRateConfig_t *controlRa
PTermGYRO = rcCommand[axis];
errorGyroI[axis] = constrain(errorGyroI[axis] + error, -16000, +16000); // WindUp
if ((abs(gyroData[axis]) > 640) || (abs(rcCommand[axis]) > 50))
if ((abs(gyroData[axis]) > (640 * 4)) || (abs(rcCommand[axis]) > 50))
errorGyroI[axis] = 0;
ITermGYRO = (errorGyroI[axis] / 125 * pidProfile->I8[axis]) / 64;