0

Line Robot - Basic lessons - Exercises - Follow any wall

This exercise closely matches task of following wall in RCJ Rescue Line evacuation zone.

Task: follow any of the 2 side walls.

If any side wall is closer than 300 mm, follow it. Turn in front of a wall and continue following the next wall. Always drive one pair of wheels at chosen maximum speed. Use built-in function turn() to turn left the robot left or right by 90°. To turn it left, call "turn(-90)". "-90" is number of degrees clockwise.