A simple header only PID Controller.
More...
#include <PIDController.h>
A simple header only PID Controller.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ begin()
| bool begin |
( |
float |
dt, |
|
|
float |
max, |
|
|
float |
min, |
|
|
float |
kp, |
|
|
float |
ki, |
|
|
float |
kd |
|
) |
| |
|
inline |
◆ calculate()
| float calculate |
( |
float |
target, |
|
|
float |
measured |
|
) |
| |
|
inline |
◆ reset()
Clears the accumulated integral and derivative history without changing the configured dt/max/min/gains. Call this when the controlled process is reset/restarted so old error history doesn't leak into the new session.
◆ setDt()
Overrides the loop interval time used by the next calculate() call. Useful when the actual elapsed time between calls varies at runtime.
◆ dt
◆ integral
◆ kd
◆ ki
◆ kp
◆ max
◆ min
◆ preerror
The documentation for this class was generated from the following file: