Skip to content

Commit 418cce9

Browse files
committed
magicbot: Only call test mode every 20 ms
This brings magicbot closer to on-par with TimedRobot.
1 parent 5d6f976 commit 418cce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magicbot/magicrobot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def test(self):
350350
wpilib.LiveWindow.run()
351351
self._update_feedback()
352352
self.robotPeriodic()
353-
wpilib.Timer.delay(.01)
353+
wpilib.Timer.delay(self.control_loop_wait_time)
354354

355355
def _on_mode_enable_components(self):
356356
# initialize things

0 commit comments

Comments
 (0)