|
Brick
|
Public Types | |
| using | kPType = units::Divided<U, T> |
| using | kIType = units::Multiplied<kPType, units::Time> |
| using | kDType = units::Divided<kPType, units::Time> |
Public Member Functions | |
| PID (kPType kP, kIType kI, kDType kD, T deadband, units::Time on_target_time) | |
| PID controller object constructor. | |
| void | reset () override |
| Resets the internal state of the PID controller. | |
| U | update (const double &state, const double &reference, const units::Time &dt=10_ms) override |
| Updates the control loop output. | |
| bool | get_on_target () |
| Gets the on target state of the PID controller. | |
| Public Member Functions inherited from Feedback< T, U > | |
| virtual U | update (const T &state, const T &reference, const units::Time &dt)=0 |
| Updates the control loop output. | |
| U | get_output () |
| Gets the last saved output value. | |
| U | get_last_error () |
| Gets the last saved error. | |
| T | get_reference () |
| Gets the currently stored reference state. | |
| T | get_state () |
| Gets the currently stored state. | |
Public Attributes | |
| kPType | kP_ |
| kIType | kI_ |
| kDType | kD_ |
| T | deadband_ |
| units::Time | on_target_time_ |
| Public Attributes inherited from Feedback< T, U > | |
| U | output_min_ |
| U | output_max_ |
Additional Inherited Members | |
| Protected Attributes inherited from Feedback< T, U > | |
| T | reference_ |
| T | state_ |
| T | last_error_ |
| U | output_ |
|
inline |
PID controller object constructor.
| kP | the proportional constant for the controller |
| kI | the integral constant for the controller |
| kD | the derivative constant for the controller |
| deadband | the deadband where the loop decides it is on target |
| on_target_time | the time where the loops decides it is on target |
|
inlineoverridevirtual |
Resets the internal state of the PID controller.
Implements Feedback< T, U >.
|
inlineoverride |