|
Re: Vex line follower sensor kit program
With the line following kit you are given three sensors. If you play one at the front of your robot, one in the middle, and the third at the end, facing downwards, it gives you a reading based on how far away it is from a line of contrasting color. If you know the distances you can make the appropriate lines of code to turn to the right or left. If you get a reading on the first one that is off the line, the middle is slightly off the line, (both to the left), and the third one is on the line, you know that the line is curving and you shoudl turn to the right. Or vice versa.
|