File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
subprojects/robotpy-wpilib/wpilib Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
waitForNotifierAlarm , stopNotifier , tResourceType , tInstances
4
4
from wpilib import RobotController
5
5
6
- from wpilib .iterativerobotpy import IterativeRobotPy
6
+ from .iterativerobotpy import IterativeRobotPy
7
7
8
8
_getFPGATime = RobotController .getFPGATime
9
9
_kResourceType_Framework = tResourceType .kResourceType_Framework
@@ -83,13 +83,13 @@ def __str__(self):
83
83
84
84
class TimedRobotPy (IterativeRobotPy ):
85
85
86
- def __init__ (self , periodS : float = 0.020 ):
87
- super ().__init__ (periodS )
86
+ def __init__ (self , period : float = 0.020 ):
87
+ super ().__init__ (period )
88
88
89
89
self ._startTimeUs = _getFPGATime ()
90
90
self ._callbacks = _OrderedList ()
91
91
self .loopStartTimeUs = 0
92
- self .addPeriodic (self .loopFunc , period = periodS )
92
+ self .addPeriodic (self .loopFunc , period = period )
93
93
94
94
self ._notifier , status = initializeNotifier ()
95
95
if status != 0 :
You can’t perform that action at this time.
0 commit comments