View Single Post
  #6   Spotlight this post!  
Unread 01-04-2010, 09:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 1s Delay Affecting Driver Controls (FTC)

The timer will run in parallel with the other tasks inside the While loop, so you don't lose the full 50ms.
At most you'll lose 50ms.

If that helps then you can experiment with shortening the time to 20ms or so. It really just needs to release long enough to allow the other loop to get a chance to run, so the time just has to be a little greater than how long the other code within the loop takes to execute.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-04-2010 at 10:29.
Reply With Quote