RIT VEXU Core API
|
#include <feedback_base.h>
Public Member Functions | |
virtual void | init (double start_pt, double set_pt)=0 |
virtual double | update (double val)=0 |
virtual double | get ()=0 |
virtual void | set_limits (double lower, double upper)=0 |
virtual bool | is_on_target ()=0 |
Interface so that subsystems can easily switch between feedback loops
|
pure virtual |
Implemented in MotionController, PID, and TakeBackHalf.
|
pure virtual |
Initialize the feedback controller for a movement
start_pt | the current sensor value |
set_pt | where the sensor value should be |
start_vel | Movement starting velocity |
end_vel | Movement ending velocity |
Implemented in MotionController, TakeBackHalf, and PID.
|
pure virtual |
Implemented in MotionController, PID, and TakeBackHalf.
|
pure virtual |
Clamp the upper and lower limits of the output. If both are 0, no limits should be applied.
lower | Upper limit |
upper | Lower limit |
Implemented in MotionController, PID, and TakeBackHalf.
|
pure virtual |
Iterate the feedback loop once with an updated sensor value
val | value from the sensor |
Implemented in MotionController, PID, and TakeBackHalf.