Skip to content

Commit 5d6f976

Browse files
committed
magicbot: Update feedbacks and call robotPeriodic in test mode
1 parent 9ef1bc0 commit 5d6f976

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

magicbot/magic_tunable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def feedback(f=None, *, key: str = None):
141141
* A component: ``/components/COMPONENTNAME/VARNAME``
142142
* Your main robot class: ``/robot/VARNAME``
143143
144-
The NetworkTables value will be auto-updated in all modes (except test mode).
144+
The NetworkTables value will be auto-updated in all modes.
145145
146146
.. warning:: The function should only act as a getter, and must not
147147
take any arguments (other than self).

magicbot/magicrobot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ def test(self):
348348

349349
while self.isTest() and self.isEnabled():
350350
wpilib.LiveWindow.run()
351+
self._update_feedback()
352+
self.robotPeriodic()
351353
wpilib.Timer.delay(.01)
352354

353355
def _on_mode_enable_components(self):

0 commit comments

Comments
 (0)