TimedRobot

class wpilib.TimedRobot[source]

Bases: wpilib.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.

DEFAULT_PERIOD = 0.02
setPeriod(period)[source]

Set time period between calls to Periodic() functions.

Parameters:period (float) – Period in seconds
Return type:None
startCompetition()[source]

Provide an alternate “main loop” via startCompetition()

Return type:None