IterativeRobot

class wpilib.IterativeRobot(self: wpilib.IterativeRobot) → None

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(self: wpilib.IterativeRobot) → None

Ends the main loop in StartCompetition().

startCompetition(self: wpilib.IterativeRobot) → None

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

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