[wpilib] Rename TimedRobot constants to all caps

This commit is contained in:
Peter Johnson
2026-03-17 16:42:32 -07:00
parent 48868020a9
commit 09be21c319
7 changed files with 11 additions and 11 deletions

View File

@@ -7,10 +7,10 @@ seconds = float
class TimedCommandRobot(TimedRobot):
kSchedulerOffset = 0.005
SCHEDULER_OFFSET = 0.005
def __init__(self, period: seconds = TimedRobot.kDefaultPeriod / 1000) -> None:
def __init__(self, period: seconds = TimedRobot.DEFAULT_PERIOD / 1000) -> None:
super().__init__(period)
self.addPeriodic(
CommandScheduler.getInstance().run, period, self.kSchedulerOffset
CommandScheduler.getInstance().run, period, self.SCHEDULER_OFFSET
)