mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
Merge pull request #3286 from mikeller/fix_iterm_accelerator_gain
Used proper scaling of 'itermAcceleratorGain'.
This commit is contained in:
commit
026504548c
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];
|
||||
|
||||
if(ABS(rcCommandSpeed) > throttleVelocityThreshold)
|
||||
pidSetItermAccelerator(0.001f * currentPidProfile->itermAcceleratorGain);
|
||||
pidSetItermAccelerator(CONVERT_PARAMETER_TO_FLOAT(currentPidProfile->itermAcceleratorGain));
|
||||
else
|
||||
pidSetItermAccelerator(1.0f);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue