|
| PIDSubsystem (const std::string &name, double p, double i, double d) |
| Instantiates a PIDSubsystem that will use the given p, i and d values. More...
|
|
| PIDSubsystem (const std::string &name, double p, double i, double d, double f) |
| Instantiates a PIDSubsystem that will use the given p, i and d values. More...
|
|
| PIDSubsystem (const std::string &name, double p, double i, double d, double f, double period) |
| Instantiates a PIDSubsystem that will use the given p, i and d values. More...
|
|
| PIDSubsystem (double p, double i, double d) |
| Instantiates a PIDSubsystem that will use the given p, i and d values. More...
|
|
| PIDSubsystem (double p, double i, double d, double f) |
| Instantiates a PIDSubsystem that will use the given p, i and d values. More...
|
|
| PIDSubsystem (double p, double i, double d, double f, double period) |
| Instantiates a PIDSubsystem that will use the given p, i and d values. More...
|
|
void | Enable () |
| Enables the internal PIDController.
|
|
void | Disable () |
| Disables the internal PIDController.
|
|
virtual void | PIDWrite (float output) |
|
virtual double | PIDGet () |
|
void | SetSetpoint (double setpoint) |
| Sets the setpoint to the given value. More...
|
|
void | SetSetpointRelative (double deltaSetpoint) |
| Adds the given value to the setpoint. More...
|
|
void | SetInputRange (float minimumInput, float maximumInput) |
| Sets the maximum and minimum values expected from the input. More...
|
|
void | SetOutputRange (float minimumOutput, float maximumOutput) |
| Sets the maximum and minimum values to write. More...
|
|
double | GetSetpoint () |
| Return the current setpoint. More...
|
|
double | GetPosition () |
| Returns the current position. More...
|
|
double | GetRate () |
| Returns the current rate. More...
|
|
virtual void | SetAbsoluteTolerance (float absValue) |
|
virtual void | SetPercentTolerance (float percent) |
|
virtual bool | OnTarget () const |
|
virtual void | InitTable (std::shared_ptr< ITable > table) |
| Initializes a table for this sendable object. More...
|
|
virtual std::string | GetSmartDashboardType () const |
|
| Subsystem (const std::string &name) |
| Creates a subsystem with the given name. More...
|
|
void | SetDefaultCommand (Command *command) |
| Sets the default command. More...
|
|
Command * | GetDefaultCommand () |
| Returns the default command (or null if there is none). More...
|
|
void | SetCurrentCommand (Command *command) |
| Sets the current command. More...
|
|
Command * | GetCurrentCommand () const |
| Returns the command which currently claims this subsystem. More...
|
|
virtual void | InitDefaultCommand () |
| Initialize the default command for this subsystem This is meant to be the place to call SetDefaultCommand in a subsystem and will be called on all the subsystems by the CommandBase method before the program starts running by using the list of all registered Subsystems inside the Scheduler. More...
|
|
virtual std::string | GetName () const |
|
virtual std::shared_ptr< ITable > | GetTable () const |
|
| ErrorBase (const ErrorBase &)=delete |
|
ErrorBase & | operator= (const ErrorBase &)=delete |
|
virtual Error & | GetError () |
| Retrieve the current error. More...
|
|
virtual const Error & | GetError () const |
|
virtual void | SetErrnoError (llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) const |
| Set error information associated with a C library call that set an error to the "errno" global variable. More...
|
|
virtual void | SetImaqError (int success, llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) const |
| Set the current error information associated from the nivision Imaq API. More...
|
|
virtual void | SetError (Error::Code code, llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) const |
| Set the current error information associated with this sensor. More...
|
|
virtual void | SetWPIError (llvm::StringRef errorMessage, Error::Code code, llvm::StringRef contextMessage, llvm::StringRef filename, llvm::StringRef function, uint32_t lineNumber) const |
| Set the current error information associated with this sensor. More...
|
|
virtual void | CloneError (const ErrorBase &rhs) const |
|
virtual void | ClearError () const |
| Clear the current error information associated with this sensor.
|
|
virtual bool | StatusIsFatal () const |
| Check if the current error code represents a fatal error. More...
|
|
virtual void | SetPIDSourceType (PIDSourceType pidSource) |
| Set which parameter you are using as a process control variable. More...
|
|
PIDSourceType | GetPIDSourceType () const |
|
This class is designed to handle the case where there is a Subsystem which uses a single PIDController almost constantly (for instance, an elevator which attempts to stay at a constant height).
It provides some convenience methods to run an internal PIDController. It also allows access to the internal PIDController in order to give total control to the programmer.