Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Number of sensors in the IR (http://www.chiefdelphi.com/forums/showthread.php?t=27137)

Pattyta 24-03-2004 22:03

Number of sensors in the IR
 
Hello,

Our team is working on the IR but only with two sensors.

The kevin.org code works with 4 and i dont know how to change it to two???
or is there a better way :confused:

Rokie team needs help plz

CrashZero 25-03-2004 09:07

Re: Number of sensors in the IR
 
Can you post some of the code that you want to change? Then I might be able to help you.

Pattyta 25-03-2004 17:22

Re: Number of sensors in the IR
 
#define LEFT_TRACKER_LEFT_SENSOR 0 // entry 0 of Sensor_Stats[] will provide this beacon data
#define LEFT_TRACKER_RIGHT_SENSOR 1 // entry 1 of Sensor_Stats[] will provide this beacon data
#define RIGHT_TRACKER_LEFT_SENSOR 2 // entry 2 of Sensor_Stats[] will provide this beacon data
#define RIGHT_TRACKER_RIGHT_SENSOR 3


all the kevin code is based on the left and right sensors of the tracker, but we only have one sensors per tracker ??
i dont know where should i earase and where not?? :confused:

Rockie team

mtrawls 25-03-2004 18:00

Re: Number of sensors in the IR
 
The reason for the two sensors per tracker is so that one sensor can see to the left and one to the right, so you always know which way to move the tracker. You could change the design to one sensor per tracker, so long as you restrict it's "sight" to a few degrees ... though the code will not work as well, and you'll have to change some logic. Or you could just put the sensors stationary and use an alternative method.

Judging by

Quote:

i dont know where should i earase and where not??
I assume you're not an expert C programmer, well-versed in the code at kevin.org. So editing it a great deal might not be a good idea. In that case, you might want to stick with the setup he has. I don't really understand why you only have one sensor per tracker; is it that you only have two sensors, or that you only use two sensors (you should have received more in the kit and can purchase others if need be).


All times are GMT -5. The time now is 02:52.

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