Skip to content

Commit 377a3af

Browse files
authored
Merge pull request #123 from auscompgeek/magicbot-sb
magicbot: Add Shuffleboard updating
2 parents 971805d + dcfc9f6 commit 377a3af

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

magicbot/magicrobot.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
import wpilib
66

7+
from networktables import NetworkTables
8+
from wpilib.shuffleboard import Shuffleboard
9+
710
from robotpy_ext.misc import NotifierDelay
811
from robotpy_ext.autonomous import AutonomousModeSelector
912

1013
from robotpy_ext.misc.orderedclass import OrderedClass
1114
from robotpy_ext.misc.annotations import get_class_annotations
1215

13-
from networktables import NetworkTables
14-
1516
from .magic_tunable import setup_tunables, _TunableProperty, collect_feedbacks
1617
from .magic_reset import will_reset_to
1718

@@ -179,10 +180,12 @@ def robotPeriodic(self):
179180
You may use it for any code you need to run
180181
during all modes of the robot (e.g NetworkTables updates)
181182
182-
The default implementation will update SmartDashboard and LiveWindow.
183+
The default implementation will update
184+
SmartDashboard, LiveWindow and Shuffleboard.
183185
"""
184186
wpilib.SmartDashboard.updateValues()
185187
wpilib.LiveWindow.updateValues()
188+
Shuffleboard.update()
186189

187190
def onException(self, forceReport=False):
188191
"""

0 commit comments

Comments
 (0)