View Single Post
  #6   Spotlight this post!  
Unread 20-02-2004, 23:23
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,113
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: Answers for Dead Reckoning... FOR BEGINNERS

Quote:
Originally Posted by KenWittlief
its very easy to have a variable that you increment everytime you loop through your auton code, and use that as a rough timer - if it increments in the main loop it will have a 26mS period
I'm doing something even simpler -- I'm simply zeroing a specific variable every time through the 26ms loop. The fast loop code just checks to see when it becomes zero, and maintains its own timers.
Quote:
If you increment it in the user_fast code it will be even smaller (I forget the period off the top of my head)
Doesn't user_fast just go "as fast as possible"? The period will just depend on how much time it takes to execute the function.
Quote:
and you dont have to mess with interrupts that way.
Messing with interrupts is, um, messy.