|
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.
|