18template <
typename Input,
typename Output>
An abstract closed-loop controller.
virtual Input getTarget()=0
Gets the last set target, or the default target if none was set.
virtual bool isDisabled() const =0
Returns whether the controller is currently disabled.
virtual Output getError() const =0
Returns the last error of the controller.
virtual void flipDisable(bool iisDisabled)=0
Sets whether the controller is off or on.
virtual void reset()=0
Resets the controller's internal state so it is similar to when it was first initialized,...
virtual ~ClosedLoopController()=default
virtual void flipDisable()=0
Changes whether the controller is off or on.
virtual Input getProcessValue() const =0
virtual void setTarget(Input itarget)=0
Sets the target for the controller.
virtual bool isSettled()=0
Returns whether the controller has settled at the target.