WPILib 2012
WPILibRoboticsLibraryforFRC
Public Member Functions | Static Public Member Functions
Scheduler Class Reference
Inheritance diagram for Scheduler:
SmartDashboardNamedData ErrorBase SmartDashboardData

List of all members.

Public Member Functions

virtual std::string GetName ()
virtual std::string GetType ()
virtual NetworkTableGetTable ()
void AddCommand (Command *command)
void AddButton (ButtonScheduler *button)
void RegisterSubsystem (Subsystem *subsystem)
void Run ()
void Remove (Command *command)

Static Public Member Functions

static SchedulerGetInstance ()

Member Function Documentation

Scheduler * Scheduler::GetInstance ( ) [static]

Returns the Scheduler, creating it if one does not exist.

Returns:
the Scheduler
void Scheduler::RegisterSubsystem ( Subsystem subsystem)

Registers a Subsystem to this Scheduler, so that the Scheduler might know if a default Command needs to be run. All Subsystems should call this.

Parameters:
systemthe system
void Scheduler::Remove ( Command command)

Removes the Command from the Scheduler.

Parameters:
commandthe command to remove
void Scheduler::Run ( )

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:

  1. Poll the Buttons
  2. Execute/Remove the Commands
  3. Send values to SmartDashboard
  4. Add Commands
  5. Add Defaults

The documentation for this class was generated from the following files:
 All Classes Functions Variables