PIController
PIController is a feedback control element that implements proportional-integral (PI) control. It computes a control signal u(t) = Kp e(t) + Ki ∫ e(τ) dτ, where e(t) is the difference between the desired setpoint and the measured process variable. The proportional term provides immediate correction based on current error, while the integral term accumulates past errors to reduce or eliminate steady-state offset, improving accuracy against constant disturbances. The integral action can introduce lag and, if gains are too high, may destabilize the system, so proper tuning is essential. In continuous-time form, the PI controller has a transfer function U(s)/E(s) = Kp + Ki/s.
In digital or discrete-time implementations with sampling period Ts, a common form is u[k] = Kp e[k] +
Practical considerations include anti-windup strategies to prevent integrator buildup when the actuator saturates, bumpless transfer during
PI controllers are widely used in industrial and embedded systems where steady-state accuracy is important and