Now you can download a copy of these docs so you can use them offline!
Download now
Public Member Functions |
| void | AddCommand (Command *command) |
|
void | AddButton (ButtonScheduler *button) |
| void | RegisterSubsystem (Subsystem *subsystem) |
| void | Run () |
| void | Remove (Command *command) |
|
void | RemoveAll () |
|
void | SetEnabled (bool enabled) |
|
virtual Error & | GetError () |
| | Retrieve the current error. Get the current error information associated with this sensor.
|
|
virtual const Error & | GetError () const |
| virtual void | SetErrnoError (const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const |
| | Set error information associated with a C library call that set an error to the "errno" global variable.
|
| virtual void | SetImaqError (int success, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const |
| | Set the current error information associated from the nivision Imaq API.
|
| virtual void | SetError (Error::Code code, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const |
| | Set the current error information associated with this sensor.
|
| virtual void | SetWPIError (const char *errorMessage, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const |
| | Set the current error information associated with this sensor.
|
|
virtual void | CloneError (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.
|
Static Public Member Functions |
| static Scheduler * | GetInstance () |
|
static void | SetGlobalError (Error::Code code, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) |
|
static void | SetGlobalWPIError (const char *errorMessage, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) |
| static Error & | GetGlobalError () |
Additional Inherited Members |
|
| ErrorBase () |
| | Initialize the instance status to 0 for now.
|
|
Error | m_error |
|
static SEM_ID | _globalErrorMutex = semMCreate(SEM_Q_PRIORITY | SEM_DELETE_SAFE | SEM_INVERSION_SAFE) |
|
static Error | _globalError |
Detailed Description
Definition at line 21 of file Scheduler.h.
Member Function Documentation
| void Scheduler::AddCommand |
( |
Command * |
command | ) |
|
Add a command to be scheduled later. In any pass through the scheduler, all commands are added to the additions list, then at the end of the pass, they are all scheduled.
- Parameters
-
| command | The command to be scheduled |
Definition at line 64 of file Scheduler.cpp.
| void Scheduler::RegisterSubsystem |
( |
Subsystem * |
subsystem | ) |
|
| void Scheduler::Remove |
( |
Command * |
command | ) |
|
Runs a single iteration of the loop. This method should be called often in order to have a functioning Command system. The loop has five stages:
-
Poll the Buttons
-
Execute/Remove the Commands
-
Send values to SmartDashboard
-
Add Commands
-
Add Defaults
Definition at line 136 of file Scheduler.cpp.
The documentation for this class was generated from the following files: