Avoid Obstacles

[4, p. 68]

Practice

  • Can you add in some extra code to make Edison “honk its horn” at the obstacle or flash its LEDs before turning around and driving away? What lines of code would you have to add?
  • What happens if you calibrate Edison’s obstacle detection to be more or less sensitive?
  • Is there a way to make Edison continue to avoid obstacles?