File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def on_enable(self) -> None:
60
60
61
61
def on_disable (self ) -> None :
62
62
"""
63
- Called when the robot leaves autonomous, teleoperated or test mode
63
+ Called when the robot enters disabled mode.
64
64
"""
65
65
66
66
def execute (self ) -> None :
Original file line number Diff line number Diff line change @@ -413,8 +413,6 @@ def autonomous(self) -> None:
413
413
watchdog = self .watchdog ,
414
414
)
415
415
416
- self ._on_mode_disable_components ()
417
-
418
416
def _disabled (self ) -> None :
419
417
"""
420
418
This function is called in disabled mode. You should not
@@ -513,8 +511,6 @@ def _operatorControl(self) -> None:
513
511
delay .wait ()
514
512
watchdog .reset ()
515
513
516
- self ._on_mode_disable_components ()
517
-
518
514
def _test (self ) -> None :
519
515
"""Called when the robot is in test mode"""
520
516
watchdog = self .watchdog
@@ -562,8 +558,6 @@ def _test(self) -> None:
562
558
wpilib .LiveWindow .setEnabled (False )
563
559
# Shuffleboard.disableActuatorWidgets()
564
560
565
- self ._on_mode_disable_components ()
566
-
567
561
def _on_mode_enable_components (self ) -> None :
568
562
# initialize things
569
563
for _ , component in self ._components :
You can’t perform that action at this time.
0 commit comments