Instructions
Students will create a program that turns their robot into a true rover.
6. Obstacle Avoidance
Next, we will tell the GoPiGo rover what to do if it gets too close to an obstacle using a if - do block (found under the Logic tab) connected to another true / false distance sensor block (found under the Sensors tab).
How close to an obstacle should your GoPiGo rover get before reacting? Is 5 cm too close? Too far away?