View Single Post
  #5   Spotlight this post!  
Unread 07-12-2006, 21:03
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
Re: Auto mode... need help

Quote:
Originally Posted by EHaskins
I would doubt that you could tax the processor to the point that the autonomous code would take longer than 26.2ms
I would agree that this normally wouldn't be a problem. In fact, the way the RC works is that if the master processor doesn't get data back in 26.2 ms, your robot gets disabled. Therefore, it is possible that the loop will runner faster than 26.2 ms.

I would suggest using real timers.
For more information, take a look at IFI's white-paper (PDF).

They have a very nice explanation of how to use the timers built into the PIC.