View Single Post
  #3   Spotlight this post!  
Unread 24-02-2004, 14:06
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Looping Atonomous

Quote:
Originally Posted by BobcatProgramer
Could someone please tell me the number of loops the fast section does a second!!
The "fast section" runs flat out, as quickly as it can, with occasional interruptions every 26ms or so as the "non-fast section" does some work. The number of loops per second depends on how long the routine takes to complete.

If you want to keep track of time, you can 1) use interrupts, 2) poll the PIC timer registers, or 3) use the 26ms-or-so communication as a timebase.