Package edu.wpi.first.wpilibj
Class TimedRobot
java.lang.Object
edu.wpi.first.wpilibj.RobotBase
edu.wpi.first.wpilibj.IterativeRobotBase
edu.wpi.first.wpilibj.TimedRobot
- Direct Known Subclasses:
Robot
public class TimedRobot extends IterativeRobotBase
TimedRobot implements the IterativeRobotBase robot program framework.
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.
-
Field Summary
Fields Modifier and Type Field Description static double
kDefaultPeriod
-
Method Summary
Modifier and Type Method Description void
startCompetition()
Provide an alternate "main loop" via startCompetition().Methods inherited from class edu.wpi.first.wpilibj.IterativeRobotBase
autonomousInit, autonomousPeriodic, disabledInit, disabledPeriodic, robotInit, robotPeriodic, teleopInit, teleopPeriodic, testInit, testPeriodic
Methods inherited from class edu.wpi.first.wpilibj.RobotBase
free, getBooleanProperty, isDisabled, isEnabled, startRobot
-
Field Details
-
kDefaultPeriod
public static final double kDefaultPeriod- See Also:
- Constant Field Values
-
-
Method Details
-
startCompetition
public void startCompetition() throws java.lang.ExceptionProvide an alternate "main loop" via startCompetition().- Specified by:
startCompetition
in classIterativeRobotBase
- Throws:
java.lang.Exception
-