public class TimedRobot extends IterativeRobotBase
The TimedRobot class is intended to be subclassed by a user creating a robot program.
periodic() functions from the base class are called on an interval by a Notifier instance.
Modifier and Type | Field and Description |
---|---|
static double |
kDefaultPeriod |
m_period
m_ds, MAIN_THREAD_ID
Modifier | Constructor and Description |
---|---|
protected |
TimedRobot()
Constructor for TimedRobot.
|
protected |
TimedRobot(double period)
Constructor for TimedRobot.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
double |
getPeriod()
Get time period between calls to Periodic() functions.
|
void |
startCompetition()
Provide an alternate "main loop" via startCompetition().
|
autonomousInit, autonomousPeriodic, disabledInit, disabledPeriodic, loopFunc, robotInit, robotPeriodic, teleopInit, teleopPeriodic, testInit, testPeriodic
close, free, getBooleanProperty, isAutonomous, isDisabled, isEnabled, isNewDataAvailable, isOperatorControl, isReal, isSimulation, isTest, startRobot
public static final double kDefaultPeriod
protected TimedRobot()
protected TimedRobot(double period)
period
- Period in seconds.public void startCompetition()
startCompetition
in class IterativeRobotBase
public double getPeriod()