Log in

View Full Version : Number of sensors in the IR


Pattyta
24-03-2004, 22:03
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
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
#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
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


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