|
| PIDSubsystem (const wpi::Twine &name, double p, double i, double d) |
| Instantiates a PIDSubsystem that will use the given P, I, and D values. More...
|
|
| PIDSubsystem (const wpi::Twine &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 wpi::Twine &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...
|
|
| PIDSubsystem (PIDSubsystem &&)=default |
|
PIDSubsystem & | operator= (PIDSubsystem &&)=default |
|
void | Enable () |
| Enables the internal PIDController.
|
|
void | Disable () |
| Disables the internal PIDController.
|
|
void | PIDWrite (double output) override |
|
double | PIDGet () override |
|
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 (double minimumInput, double maximumInput) |
| Sets the maximum and minimum values expected from the input. More...
|
|
void | SetOutputRange (double minimumOutput, double 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 (double absValue) |
| Set the absolute error which is considered tolerable for use with OnTarget. More...
|
|
virtual void | SetPercentTolerance (double percent) |
| Set the percentage error which is considered tolerable for use with OnTarget(). More...
|
|
virtual bool | OnTarget () const |
| Return true if the error is within the percentage of the total input range, determined by SetTolerance(). More...
|
|
| Subsystem (const wpi::Twine &name) |
| Creates a subsystem with the given name. More...
|
|
| Subsystem (Subsystem &&)=default |
|
Subsystem & | operator= (Subsystem &&)=default |
|
void | SetDefaultCommand (Command *command) |
| Sets the default command. More...
|
|
Command * | GetDefaultCommand () |
| Returns the default command (or null if there is none). More...
|
|
wpi::StringRef | GetDefaultCommandName () |
| Returns the default command name, or empty string is 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...
|
|
wpi::StringRef | GetCurrentCommandName () const |
| Returns the current command name, or empty string if no current command. More...
|
|
virtual void | Periodic () |
| When the run method of the scheduler is called this method will be called.
|
|
virtual void | InitDefaultCommand () |
| Initialize the default command for this subsystem. More...
|
|
void | AddChild (const wpi::Twine &name, std::shared_ptr< Sendable > child) |
| Associate a Sendable with this Subsystem. More...
|
|
void | AddChild (const wpi::Twine &name, Sendable *child) |
| Associate a Sendable with this Subsystem. More...
|
|
void | AddChild (const wpi::Twine &name, Sendable &child) |
| Associate a Sendable with this Subsystem. More...
|
|
void | AddChild (std::shared_ptr< Sendable > child) |
| Associate a Sendable with this Subsystem. More...
|
|
void | AddChild (Sendable *child) |
| Associate a Sendable with this Subsystem. More...
|
|
void | AddChild (Sendable &child) |
| Associate a Sendable with this Subsystem. More...
|
|
void | InitSendable (SendableBuilder &builder) override |
| Initializes this Sendable object. More...
|
|
| ErrorBase (ErrorBase &&)=default |
|
ErrorBase & | operator= (ErrorBase &&)=default |
|
virtual Error & | GetError () |
| Retrieve the current error. More...
|
|
virtual const Error & | GetError () const |
| Retrieve the current error. More...
|
|
virtual void | ClearError () const |
| Clear the current error information associated with this sensor.
|
|
virtual void | SetErrnoError (const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int 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, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| Set the current error information associated from the nivision Imaq API. More...
|
|
virtual void | SetError (Error::Code code, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| Set the current error information associated with this sensor. More...
|
|
virtual void | SetErrorRange (Error::Code code, int32_t minRange, int32_t maxRange, int32_t requestedValue, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| Set the current error information associated with this sensor. More...
|
|
virtual void | SetWPIError (const wpi::Twine &errorMessage, Error::Code code, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| Set the current error information associated with this sensor. More...
|
|
virtual void | CloneError (const ErrorBase &rhs) const |
|
virtual bool | StatusIsFatal () const |
| Check if the current error code represents a fatal error. More...
|
|
| SendableBase (bool addLiveWindow=true) |
| Creates an instance of the sensor base. More...
|
|
| SendableBase (SendableBase &&rhs) |
|
SendableBase & | operator= (SendableBase &&rhs) |
|
std::string | GetName () const final |
| Gets the name of this Sendable object. More...
|
|
void | SetName (const wpi::Twine &name) final |
| Sets the name of this Sendable object. More...
|
|
std::string | GetSubsystem () const final |
| Gets the subsystem name of this Sendable object. More...
|
|
void | SetSubsystem (const wpi::Twine &subsystem) final |
| Sets the subsystem name of this Sendable object. More...
|
|
| Sendable (Sendable &&)=default |
|
Sendable & | operator= (Sendable &&)=default |
|
void | SetName (const wpi::Twine &subsystem, const wpi::Twine &name) |
| Sets both the subsystem name and device name of this Sendable object. More...
|
|
virtual void | SetPIDSourceType (PIDSourceType pidSource) |
| Set which parameter you are using as a process control variable. More...
|
|
virtual 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.