Integrating Gear Tooth Sensor

Hello everyone,
I hope everyone has been working hard for past 6 weeks. Well actually I have a question regarding integration of gear tooth sensor. We so far have camera and gyro integrated. So basically our camera can track and lock on the light and than gyro can help position our robot facing the light. However, now we are facing the goal so we thought of using Gear Tooth Sensor to move our robot precisely to the goal. Based on the threads i tried to use Kevin’s encoder code to run our gear tooth sensor but it doesn’t work. Can anyone be please specific on how to get Gear Tooth Sensor programmed?

I took kevin’s encoder.c and encoder.h and called encoder. h in user_routines_fast.c. I changed the interupt handler was installed but yet it didn’t work. If someone can please give me some specific directions than it would be great Have fun everyone!

Jigar [1219]

http://www.chiefdelphi.com/forums/showthread.php?t=53483&highlight=user_routines_fast_rkw

Try this thread. I don’t know if it will work for us (as I’m going to have the software students test it at 10am) but it looks like it might.

Jason

I just wanted to say that the code I pointed you to worked- it fixed out encoder problem (At least for out GTS on IO/3). No phase data is possible, so it’s not perfect, but…