A PID controller for multiple independent dimensions.
More...
#include <PIDControl.h>
template<int dim>
class control::PIDController< dim >
A PID controller for multiple independent dimensions.
- Template Parameters
-
dim | The number of dimensions to control. |
- See also
- https://en.wikipedia.org/wiki/PID_controller
◆ PIDController()
Construct a new PIDController.
- Parameters
-
gains | The gains to use for the controller. |
◆ getOutput()
Get the output from the controller.
- Parameters
-
currTime | The current timestamp. |
currValue | The current values of the controlled signals. |
- Returns
- Arrayd<dim> Targets for each dimension if target is set, else zeros.
◆ hasTarget()
Check if a target is currently set.
- Returns
- bool True iff the controller currently has a target.
◆ setGains()
Set the gains of the PID controller.
- Parameters
-
gains | The new gains to set. |
◆ setTarget()
Set the target of the controller.
- Parameters
-
setPoint | An array of setpoints, one for each dimension. |
The documentation for this class was generated from the following file: