Quote:
Originally Posted by stuffssguy
We want to use a timer for executing commands. (if x button is pushed than p happens and after a certain amount of time q happens) This would most likely be for controlling the solenoids on our robot so that with one button push a piston would extend before the other. We would also use it for driving functions.
|
If you're using my 2008 robot controller code, I've created drop-in replacement code for timer.c and timer.h that implements a millisecond system clock using timer 2. The code is available here:
http://kevin.org/frc/ifi_clock.zip.
-Kevin