Fixed maximum value of itermAcceleratorGain, reverted proper scaling.

This commit is contained in:
mikeller 2017-06-15 01:08:53 +12:00
parent 2e4184dc6d
commit c0a3cf5ba3
1 changed files with 1 additions and 1 deletions

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