1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Merge pull request #3286 from mikeller/fix_iterm_accelerator_gain

Used proper scaling of 'itermAcceleratorGain'.
This commit is contained in:
borisbstyle 2017-06-15 08:38:11 +02:00 committed by GitHub
commit 026504548c

View file

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