|
void | StartCompetition () override |
| Provide an alternate "main loop" via StartCompetition().
|
|
void | EndCompetition () override |
| Ends the main loop in StartCompetition().
|
|
| TimedRobot (units::second_t period=kDefaultPeriod) |
| Constructor for TimedRobot.
|
|
| TimedRobot (TimedRobot &&)=default |
|
TimedRobot & | operator= (TimedRobot &&)=default |
|
| ~TimedRobot () override |
|
uint64_t | GetLoopStartTime () |
| Return the system clock time in micrseconds for the start of the current periodic loop.
|
|
void | AddPeriodic (std::function< void()> callback, units::second_t period, units::second_t offset=0_s) |
| Add a callback to run at a specific period with a starting time offset.
|
|
virtual void | RobotInit () |
| Robot-wide initialization code should go here.
|
|
virtual void | DriverStationConnected () |
| Code that needs to know the DS state should go here.
|
|
virtual void | SimulationInit () |
| Robot-wide simulation initialization code should go here.
|
|
virtual void | DisabledInit () |
| Initialization code for disabled mode should go here.
|
|
virtual void | AutonomousInit () |
| Initialization code for autonomous mode should go here.
|
|
virtual void | TeleopInit () |
| Initialization code for teleop mode should go here.
|
|
virtual void | TestInit () |
| Initialization code for test mode should go here.
|
|
virtual void | RobotPeriodic () |
| Periodic code for all modes should go here.
|
|
virtual void | SimulationPeriodic () |
| Periodic simulation code should go here.
|
|
virtual void | DisabledPeriodic () |
| Periodic code for disabled mode should go here.
|
|
virtual void | AutonomousPeriodic () |
| Periodic code for autonomous mode should go here.
|
|
virtual void | TeleopPeriodic () |
| Periodic code for teleop mode should go here.
|
|
virtual void | TestPeriodic () |
| Periodic code for test mode should go here.
|
|
virtual void | DisabledExit () |
| Exit code for disabled mode should go here.
|
|
virtual void | AutonomousExit () |
| Exit code for autonomous mode should go here.
|
|
virtual void | TeleopExit () |
| Exit code for teleop mode should go here.
|
|
virtual void | TestExit () |
| Exit code for test mode should go here.
|
|
void | SetNetworkTablesFlushEnabled (bool enabled) |
| Enables or disables flushing NetworkTables every loop iteration.
|
|
void | EnableLiveWindowInTest (bool testLW) |
| Sets whether LiveWindow operation is enabled during test mode.
|
|
bool | IsLiveWindowEnabledInTest () |
| Whether LiveWindow operation is enabled during test mode.
|
|
units::second_t | GetPeriod () const |
| Gets time period between calls to Periodic() functions.
|
|
void | PrintWatchdogEpochs () |
| Prints list of epochs added so far and their times.
|
|
| IterativeRobotBase (units::second_t period) |
| Constructor for IterativeRobotBase.
|
|
| ~IterativeRobotBase () override=default |
|
bool | IsEnabled () const |
| Determine if the Robot is currently enabled.
|
|
bool | IsDisabled () const |
| Determine if the Robot is currently disabled.
|
|
bool | IsAutonomous () const |
| Determine if the robot is currently in Autonomous mode.
|
|
bool | IsAutonomousEnabled () const |
| Determine if the robot is currently in Autonomous mode and enabled.
|
|
bool | IsTeleop () const |
| Determine if the robot is currently in Operator Control mode.
|
|
bool | IsTeleopEnabled () const |
| Determine if the robot is current in Operator Control mode and enabled.
|
|
bool | IsTest () const |
| Determine if the robot is currently in Test mode.
|
|
bool | IsTestEnabled () const |
| Determine if the robot is current in Test mode and enabled.
|
|
| RobotBase () |
| Constructor for a generic robot program.
|
|
virtual | ~RobotBase ()=default |
|