mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Get rid of unneeded constrain
This commit is contained in:
parent
3bcf96e6eb
commit
7bfd2b5d1c
1 changed files with 0 additions and 2 deletions
|
@ -254,8 +254,6 @@ void pidController(const pidProfile_t *pidProfile, const rollAndPitchTrims_t *an
|
||||||
dynKi *= itermAccelerator;
|
dynKi *= itermAccelerator;
|
||||||
float ITermDelta = Ki[axis] * errorRate * dT * dynKi;
|
float ITermDelta = Ki[axis] * errorRate * dT * dynKi;
|
||||||
ITerm += ITermDelta;
|
ITerm += ITermDelta;
|
||||||
// also limit maximum integrator value to prevent windup
|
|
||||||
ITerm = constrainf(ITerm, -250.0f, 250.0f);
|
|
||||||
previousGyroIf[axis] = ITerm;
|
previousGyroIf[axis] = ITerm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue