3. 90° Turn Coding Theory 1 of 2
1. The Robot goes forward in the maze, making sure that the distances that both its sensors
return are the same
2. The right sensor sees a big difference in the distance it is computing, engage the turning
function
3. Keep on going straight until both sensors return the same distance, the Robot is now
located in the middle of the turn, start turning
4. 90° Turn Coding Theory 2 of 2
4. Turn until the right sensor does not receive back the IR signal it sents
5. Keep on turning. The right sensor computes a decreasing distance to the wall, until it
finally reaches its maximum. The latter is only known by turning a little more and seeing a
decreasing distance to the right wall.
6. Leave and complete the 90° Turn by going straight