|
Re: A quick IR sensor question
Thanks a lot, but I have one more question. So you are telling me that we should use DiSEEL in out if command used for navigation? So should it be like:
....
if(diSEEL==0)
{
//drive left and right (to find the beacon)
}
else
{
//drive forward for 5 secs.(when find the beacon)
}
But what if we have two sensors as you, one left and one right? We only have one variable, then what do we do? Also, can the sensor distinuish between the two beacons since they are on different frequencies?
Thanks a lot for your help.
|