@@ -67,10 +67,7 @@ class MagicRobot(wpilib.RobotBase):
6767
6868 def __init__ (self ) -> None :
6969 super ().__init__ ()
70- hal .report (
71- hal .tResourceType .kResourceType_Framework .value ,
72- hal .tInstances .kFramework_MagicBot .value ,
73- )
70+ hal .reportUsage ("Framework" , "Magicbot" )
7471
7572 self ._exclude_from_injection = ["logger" ]
7673
@@ -85,7 +82,6 @@ def __init__(self) -> None:
8582 # cache these
8683 self .__is_ds_attached = wpilib .DriverStation .isDSAttached
8784 self .__sd_update = wpilib .SmartDashboard .updateValues
88- self .__lv_update = wpilib .LiveWindow .updateValues
8985 # self.__sf_update = Shuffleboard.update
9086
9187 def _simulationInit (self ) -> None :
@@ -116,7 +112,6 @@ def robotInit(self) -> None:
116112 # cache these
117113 self .__is_ds_attached = wpilib .DriverStation .isDSAttached
118114 self .__sd_update = wpilib .SmartDashboard .updateValues
119- self .__lv_update = wpilib .LiveWindow .updateValues
120115 # self.__sf_update = Shuffleboard.update
121116
122117 self .__nt = NetworkTableInstance .getDefault ().getTable ("/robot" )
@@ -259,14 +254,11 @@ def robotPeriodic(self) -> None:
259254 You may use it for any code you need to run
260255 during all modes of the robot (e.g NetworkTables updates)
261256
262- The default implementation will update
263- SmartDashboard, LiveWindow and Shuffleboard.
257+ The default implementation will update SmartDashboard
264258 """
265259 watchdog = self .watchdog
266260 self .__sd_update ()
267261 watchdog .addEpoch ("SmartDashboard" )
268- self .__lv_update ()
269- watchdog .addEpoch ("LiveWindow" )
270262 # self.__sf_update()
271263 # watchdog.addEpoch("Shuffleboard")
272264
@@ -519,7 +511,6 @@ def _test(self) -> None:
519511 self .__nt_put_mode ("test" )
520512 self .__nt_put_is_ds_attached (self .__is_ds_attached ())
521513
522- wpilib .LiveWindow .setEnabled (True )
523514 # Shuffleboard.enableActuatorWidgets()
524515
525516 # initialize things
@@ -555,7 +546,6 @@ def _test(self) -> None:
555546 delay .wait ()
556547 watchdog .reset ()
557548
558- wpilib .LiveWindow .setEnabled (False )
559549 # Shuffleboard.disableActuatorWidgets()
560550
561551 def _on_mode_enable_components (self ) -> None :
0 commit comments