View Single Post
  #1   Spotlight this post!  
Unread 18-02-2010, 08:21
Geek 2.0 Geek 2.0 is offline
Registered User
FRC #0107
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2008
Location: Holland, MI
Posts: 120
Geek 2.0 will become famous soon enough
Using TimerTasks

Is it a good idea to create TimerTasks to take care of updating certain portions of the robot, such as the drive train or the ball handling system? For instance, if there is something that needs to be called regularly (like setting the Jaguars for motors or checking limit switches, etc.) just set a TimerTask to call it at a 20ms period so that we don't have to worry about updating.

I have them working, but I'm wondering if there are any disadvantages that I'm missing, and also hoping to help anyone who wants to try.
Reply With Quote