|
tomlankhorst/control
|
#include <pid.h>
Public Member Functions | |
| PID (T Ts=1.0, T Kp=1.0, T Ti=max< T >(), T Td=0.0, T N=max< T >(), T Limit=max< T >()) | |
| filter::TCS< T > | poles () |
| void | reset () |
Public Member Functions inherited from control::classic::AbstractController< T > | |
| AbstractController (T Limit_=max< T >()) | |
| T | step (T e) final |
| void | setLimit (T limit) |
Protected Member Functions | |
| T | control (T e) |
Protected Member Functions inherited from control::classic::AbstractController< T > | |
| T | clip (T u) |
Protected Attributes | |
| filter::Biquad< T > | B |
Additional Inherited Members | |
Public Attributes inherited from control::classic::AbstractController< T > | |
| T | Limit |
| bool | clipping = false |
Proportional integral derivative controller
|
inlineexplicit |
Constructor of PID controller
| Ts | Timestep (s) |
| Kp | Proportional gain |
| Ti | Integrator time-constant (s) |
| Td | Differentiator time-constant (s) |
| N | Filter coefficicent |
| Limit | Maximum output |
|
inlineprotectedvirtual |
Retrieves the control output, unclipped
| T | e the error |
Implements control::classic::AbstractController< T >.
|
inline |
Poles of the PID controller
|
inlinevirtual |
Reset the state of the controller
Reimplemented from control::classic::AbstractController< T >.
|
protected |
Biquad filter
1.8.13