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.
