mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Fixed maximum value of itermAcceleratorGain, reverted proper scaling.
This commit is contained in:
parent
2e4184dc6d
commit
c0a3cf5ba3
1 changed files with 1 additions and 1 deletions
|
@ -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.001f * currentPidProfile->itermAcceleratorGain);
|
pidSetItermAccelerator(CONVERT_PARAMETER_TO_FLOAT(currentPidProfile->itermAcceleratorGain));
|
||||||
else
|
else
|
||||||
pidSetItermAccelerator(1.0f);
|
pidSetItermAccelerator(1.0f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue