|
Re: GeneratePWMS
Thanks guys. I found a way to do it. Took some experimenting, but here it is:
Run the sensor output into digital inputs 2 and 3. Have interupt on 2 for the rising edge and one for the falling edge. The first starts the timer, the second reads it out and scales it.
I haven't actually tried this - I'll probably fool with it post-build season, but I was just thinking ahead since my team doesn't let me touch the bot. Something about building it....
Last edited by Neal Turett : 23-02-2004 at 23:28.
Reason: lots of typos
|