Skip to content

Commit 4c1a975

Browse files
authored
Merge pull request #125 from auscompgeek/magicbot-redundant-lw
magicbot: Remove redundant LiveWindow enable calls
2 parents bf3e02e + 09c36ca commit 4c1a975

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
@@ -287,7 +287,6 @@ def autonomous(self):
287287

288288
self.__nt.putString("mode", "auto")
289289
self.__nt.putBoolean("is_ds_attached", self.ds.isDSAttached())
290-
wpilib.LiveWindow.setEnabled(False)
291290

292291
self._on_mode_enable_components()
293292

@@ -313,7 +312,6 @@ def disabled(self):
313312

314313
self.__nt.putString("mode", "disabled")
315314
ds_attached = None
316-
wpilib.LiveWindow.setEnabled(False)
317315

318316
self._on_mode_disable_components()
319317
try:
@@ -361,7 +359,6 @@ def operatorControl(self):
361359
# don't need to update this during teleop -- presumably will switch
362360
# modes when ds is no longer attached
363361
self.__nt.putBoolean("is_ds_attached", self.ds.isDSAttached())
364-
wpilib.LiveWindow.setEnabled(False)
365362

366363
# initialize things
367364
self._on_mode_enable_components()
@@ -403,7 +400,6 @@ def test(self):
403400

404401
self.__nt.putString("mode", "test")
405402
self.__nt.putBoolean("is_ds_attached", self.ds.isDSAttached())
406-
wpilib.LiveWindow.setEnabled(True)
407403

408404
try:
409405
self.testInit()

0 commit comments

Comments
 (0)