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!
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…