37 float uMin = -std::numeric_limits<float>::infinity(),
38 float uMax = std::numeric_limits<float>::infinity())
49 i = i +
Ki *
Ts * error;
51 float u =
Kp * error + i;
96 bool saturation =
false;
Proportional and integral controller with saturation.
float antiWindUp(float u)
PIController(float Kp, float Ki, float Ts=1, float uMin=-std::numeric_limits< float >::infinity(), float uMax=std::numeric_limits< float >::infinity())
float antiWindUp(float u, float uMin, float uMax)
Anti-windup mechanism.
float update(float error)
Update the PI internal state.
This file includes all the types the logdecoder script will decode.