View Single Post
  #4   Spotlight this post!  
Unread 02-12-2004, 01:10
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Is there a built in tick/millisecond counter?

Quote:
Originally Posted by Aalfabob
My first question is, are there any counters built into the main unit?

If there is, how would i access it?
Kevin Watson's site has example code for a timer for both the EDU and Competition RC. See www.kevin.org/frc

There is a hazard associated with reading a counter value that is maintained by the interrupt handler, but this is easily dealt with. See the section on interrupt programming in "An Introduction to C Programming for FIRST Robotics Applications," you will want the latest version from www.srvhsrobotics.org, in the Technical page.

Have fun!