View Single Post
  #1   Spotlight this post!  
Unread 13-01-2008, 13:58
7-11number1 7-11number1 is offline
ROAR.
FRC #1711 (RAPTORS)
 
Join Date: Sep 2007
Rookie Year: 2006
Location: Traverse City, Michigan
Posts: 46
7-11number1 will become famous soon enough
Tracking Elapsed Time

Our team is getting better at programming using MPLAB and I had a question:

1. What is the best way to track elapsed time?

For example, the the main loop running on the RC is fast enough to loop (3) times each time the IR board receives an input then sends out a pulse. We would like to create a timer and ignore any other pulses from the IR board for a 500ms window to prevent processing the same signal (3) times.

I wasn't sure if the RC had an internal clock which could be read and stored into a variable.

Good Luck!
TEAM #1711
Traverse City, MI