View Single Post
  #6   Spotlight this post!  
Unread 26-03-2013, 22:56
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Updating the Dashboard

Quote:
Originally Posted by Ginto8 View Post
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.
Reply With Quote