|
Explore TEAMS!
|
Student /
Lab5HigginsWallFollowWall Follow Red Cohort Summary I used the long range sensor on the farthest right edge of the robot facing forwards. I treated this like a long range bump sensor. Whenever the robot would get within a certain range it would stop and turn about 20 degrees to the left. This may happen more than one time, but i found that if i made more of a turn then the robot had trouble finding the wall. This way it would turn slightly once or twice and then be picked up by the side sensor and begin following the wall once again.
The other sensor I used was the bump sensor. I used it only as a precaution. If the robot were to get into a situation where it was not picking up a wall in front of it and did not back up, then the bump sensor would use the exact same function as the sensor facing forwards. It would back up and turn about 20 degrees to the left.
|