Skip to content

Commit 09c36ca

Browse files
committed
magicbot: Remove redundant LiveWindow enable calls
These are already done by SampleRobot.
1 parent 377a3af commit 09c36ca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

magicbot/magicrobot.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ def autonomous(self):
281281

282282
self.__nt.putString("mode", "auto")
283283
self.__nt.putBoolean("is_ds_attached", self.ds.isDSAttached())
284-
wpilib.LiveWindow.setEnabled(False)
285284

286285
self._on_mode_enable_components()
287286

@@ -304,7 +303,6 @@ def disabled(self):
304303

305304
self.__nt.putString("mode", "disabled")
306305
ds_attached = None
307-
wpilib.LiveWindow.setEnabled(False)
308306

309307
self._on_mode_disable_components()
310308
try:
@@ -340,7 +338,6 @@ def operatorControl(self):
340338
# don't need to update this during teleop -- presumably will switch
341339
# modes when ds is no longer attached
342340
self.__nt.putBoolean("is_ds_attached", self.ds.isDSAttached())
343-
wpilib.LiveWindow.setEnabled(False)
344341

345342
# initialize things
346343
self._on_mode_enable_components()
@@ -370,7 +367,6 @@ def test(self):
370367

371368
self.__nt.putString("mode", "test")
372369
self.__nt.putBoolean("is_ds_attached", self.ds.isDSAttached())
373-
wpilib.LiveWindow.setEnabled(True)
374370

375371
try:
376372
self.testInit()

0 commit comments

Comments
 (0)