Thread: Timer Delay
View Single Post
  #1   Spotlight this post!  
Unread 20-02-2010, 08:42
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: Timer Delay

I'm not sure I understand the question, but if you are talking about edu.wpi.first.wpilibj.Timer.delay(), then it does what it says - it causes the calling thread (your program) to pause for a while.

Oh - is the problem that the robot is pausing instead of driving (or whatever) for the expected time?

In that case it could be a watchdog problem? You need to keep feeding it, and if your delays are longer than the watchdog expiration it will time out.
Reply With Quote