mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilib] Rename TimedRobot constants to all caps
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user