TimedCommandRobot

class commands2.TimedCommandRobot(*args, **kwargs)[source]

Bases: TimedRobot

Overloaded function.

  1. __init__(self: wpilib._wpilib.TimedRobot, period: wpimath.units.seconds = 0.02) -> None

Constructor for TimedRobot.

Parameters:

period – The period of the robot loop function.

  1. __init__(self: wpilib._wpilib.TimedRobot, frequency: wpimath.units.hertz) -> None

Constructor for TimedRobot.

Parameters:

frequency – The frequency of the robot loop function.

SCHEDULER_OFFSET = 0.005