This is a really good programming exercise for Josh, Daniel, Anika/whoever else wants to learn!
Basically, the way RobotC implements timers is very messy and has ridiculous limitations (you can't measure in milliseconds if you want to go past 30 seconds, you have to use centiseconds to get timer values up to 2 minutes, etc.). It also restricts us to using four timers.
If you guys are able to write a good timer library, that that's 1) great practice for you guys and 2) lets us get past these limtiations.
Of course Xander has already written a timer library that does all of this, but try not to look at it :) It's better if you guys practice on your own.
This is a really good programming exercise for Josh, Daniel, Anika/whoever else wants to learn!
Basically, the way RobotC implements timers is very messy and has ridiculous limitations (you can't measure in milliseconds if you want to go past 30 seconds, you have to use centiseconds to get timer values up to 2 minutes, etc.). It also restricts us to using four timers.
If you guys are able to write a good timer library, that that's 1) great practice for you guys and 2) lets us get past these limtiations.
Of course Xander has already written a timer library that does all of this, but try not to look at it :) It's better if you guys practice on your own.