Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Integrating Gear Tooth Sensor (http://www.chiefdelphi.com/forums/showthread.php?t=54478)

magical hands 18-02-2007 17:50

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]

purduephotog 19-02-2007 08:48

Re: Integrating Gear Tooth Sensor
 
Quote:

Originally Posted by magical hands (Post 581046)
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_fas t_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

purduephotog 19-02-2007 20:29

Re: Integrating Gear Tooth Sensor
 
Quote:

Originally Posted by magical hands (Post 581046)
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]

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....


All times are GMT -5. The time now is 04:51.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi