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

fix iterm acclerator gain scale

This commit is contained in:
Steffen Windoffer 2017-06-14 13:19:42 +02:00
parent d84aeea538
commit c39c51f099

View file

@ -166,7 +166,7 @@ static void scaleRcCommandToFpvCamAngle(void) {
const int16_t rcCommandSpeed = rcCommand[THROTTLE] - rcCommandThrottlePrevious[index]; const int16_t rcCommandSpeed = rcCommand[THROTTLE] - rcCommandThrottlePrevious[index];
if(ABS(rcCommandSpeed) > throttleVelocityThreshold) if(ABS(rcCommandSpeed) > throttleVelocityThreshold)
pidSetItermAccelerator(0.0001f * currentPidProfile->itermAcceleratorGain); pidSetItermAccelerator(0.001f * currentPidProfile->itermAcceleratorGain);
else else
pidSetItermAccelerator(1.0f); pidSetItermAccelerator(1.0f);
} }