Book
Day 3 - Section 1 - More obstacles avoiding
Day 3 - Section 1 - More obstacles avoiding
Completion requirements
View
After the completion of this section the students will be able to:
- program their robot to avoid an obstacle upon detection
- make the robot drive and avoid obstacles continuously
- create the code to detect obstacles to the left or to the right of the robot
Chapter 6.1 - Detect obstacle and avoid
Write the following program to have the Edison robot drive until it encounters an obstacle, then turn 180° and drive for 1 second away from the obstacle.
Use the right amount of time to have the robot to turn 180°, where indicated above by the orange question mark (?).