|
Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
|
A PID controller for multiple independent dimensions. More...
#include <PIDControl.h>
Public Types | |
| template<int d> | |
| using | Arrayd = Eigen::Array<double, d, 1> |
Public Member Functions | |
| PIDController (const std::array< PIDGains, dim > &gains) | |
| Construct a new PIDController. | |
| void | setGains (const std::array< PIDGains, dim > &gains) |
| Set the gains of the PID controller. | |
| bool | hasTarget () |
| Check if a target is currently set. | |
| void | setTarget (const Arrayd< dim > &setPoint) |
| Set the target of the controller. | |
| Arrayd< dim > | getOutput (robot::types::datatime_t currTime, const Arrayd< dim > &currValue) |
| Get the output from the controller. | |
| void | reset () |
| Reset the controller. | |
A PID controller for multiple independent dimensions.
| dim | The number of dimensions to control. |
|
inline |
Construct a new PIDController.
| gains | The gains to use for the controller. |
|
inline |
Get the output from the controller.
| currTime | The current timestamp. |
| currValue | The current values of the controlled signals. |
|
inline |
Check if a target is currently set.
|
inline |
Set the gains of the PID controller.
| gains | The new gains to set. |
|
inline |
Set the target of the controller.
| setPoint | An array of setpoints, one for each dimension. |