Quote:
Originally Posted by Ginto8
We actually use a Command to update values to the dashboard, which, if you're calling Scheduler.getInstance().run() in both Periodic() methods, has the same effect as that TimerTask (though a different frequency). I have considered changing it to something that will send data regardless of whether the robot is enabled, but I'm loathe to change working code any more than I have to. Maybe next year.
|
If you call the setRunWhileDisabled method for your command and add the scheduler run to disabledPeriodic, you can run your command while disabled with minimal code changes.