@@ -163,22 +163,22 @@ def loopFunc(self):
163
163
Shuffleboard .disableActuatorWidgets ()
164
164
self .testExit ()
165
165
166
- if self ._mode == IterativeRobotMode .kDisabled :
167
- self .disabledInit ()
168
- self ._watchdog .addEpoch ("DisabledInit()" )
169
- elif self ._mode == IterativeRobotMode .kAutonomous :
170
- self .autonomousInit ()
171
- self ._watchdog .addEpoch ("AutonomousInit()" )
172
- elif self ._mode == IterativeRobotMode .kTeleop :
173
- self .teleopInit ()
174
- self ._watchdog .addEpoch ("TeleopInit()" )
175
- elif self ._mode == IterativeRobotMode .kTest :
176
- if self ._lwEnabledInTest :
177
- wpilib .LiveWindow .setEnabled (True )
178
- Shuffleboard .enableActuatorWidgets ()
179
- self .testInit ()
180
- self ._watchdog .addEpoch ("TestInit()" )
181
- self ._lastMode = self ._mode
166
+ if self ._mode == IterativeRobotMode .kDisabled :
167
+ self .disabledInit ()
168
+ self ._watchdog .addEpoch ("DisabledInit()" )
169
+ elif self ._mode == IterativeRobotMode .kAutonomous :
170
+ self .autonomousInit ()
171
+ self ._watchdog .addEpoch ("AutonomousInit()" )
172
+ elif self ._mode == IterativeRobotMode .kTeleop :
173
+ self .teleopInit ()
174
+ self ._watchdog .addEpoch ("TeleopInit()" )
175
+ elif self ._mode == IterativeRobotMode .kTest :
176
+ if self ._lwEnabledInTest :
177
+ wpilib .LiveWindow .setEnabled (True )
178
+ Shuffleboard .enableActuatorWidgets ()
179
+ self .testInit ()
180
+ self ._watchdog .addEpoch ("TestInit()" )
181
+ self ._lastMode = self ._mode
182
182
183
183
# Call the appropriate function depending upon the current robot mode
184
184
if self ._mode == IterativeRobotMode .kDisabled :
0 commit comments