|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <setpoint_subsystem.hpp>


Public Member Functions | |
| virtual float | getSetpoint () const =0 |
| virtual void | setSetpoint (float newAngle)=0 |
| virtual float | getCurrentValue () const =0 |
| virtual float | getJamSetpointTolerance () const =0 |
| virtual bool | calibrateHere ()=0 |
| virtual bool | isJammed ()=0 |
| virtual void | clearJam ()=0 |
| virtual bool | isCalibrated ()=0 |
| virtual bool | isOnline ()=0 |
| virtual float | getVelocity ()=0 |
Public Member Functions inherited from tap::control::Subsystem | |
| Subsystem (Drivers *drivers) | |
| virtual | ~Subsystem () |
| virtual void | initialize () |
| void | registerAndInitialize () |
| mockable void | setDefaultCommand (Command *defaultCommand) |
| mockable Command * | getDefaultCommand () const |
| virtual void | refresh () |
| virtual void | refreshSafeDisconnect () |
| mockable void | setTestCommand (Command *testCommand) |
| mockable Command * | getTestCommand () const |
| virtual const char * | getName () const |
| mockable int | getGlobalIdentifier () const |
Additional Inherited Members | |
Protected Attributes inherited from tap::control::Subsystem | |
| Drivers * | drivers |
An abstract class (usable as an interface) describing the functionalities of a subsystem which uses a positional controller to rotate something.
Any mention of position in the documentation for this class does not necessarily refer to a physical location in space, rather it refers to a quantity describing whatever is being positionally controlled by the subsystem.
|
pure virtual |
Attempts to calibrate the subsystem at the current position, such that getCurrentValue will return 0 units at this position.
true if the subsystem has been successfully calibrated, false otherwise.
|
pure virtual |
Call to clear the jam flag of the subsystem, indicating that the jam has been solved.
|
pure virtual |
|
pure virtual |
|
inlinepure virtual |
|
inlinepure virtual |
|
inlinepure virtual |
true if the subsystem has been calibrated
|
pure virtual |
true if the subsystem unjam timer has expired, signaling that the subsystem has jammed, false otherwise.
|
inlinepure virtual |
true if the subsystem is online (i.e.: is connected)
|
inlinepure virtual |
Sets the desired position of the subsystem, relative to where it was calibrated.
| [in] | newValue | the new desired value the subsystem will try to reach. |