IterativeRobot

class wpilib.IterativeRobot

Bases: wpilib.IterativeRobotBase

IterativeRobot implements the IterativeRobotBase robot program framework.

The IterativeRobot class is intended to be subclassed by a user creating a robot program.

Periodic() functions from the base class are called each time a new packet is received from the driver station.

Deprecated

Use TimedRobot instead. It’s a drop-in replacement that provides more regular execution periods.

endCompetition()None

Ends the main loop in StartCompetition().

startCompetition()None

Provide an alternate “main loop” via StartCompetition().

This specific StartCompetition() implements “main loop” behavior synced with the DS packets.