Instructions
2. Plan Your Program
Before we jump into coding, we are going to break down the larger program into parts and plan it out.
In computer science this is called decomposition. Computer scientists use decomposition to break down a complex task into smaller, more manageable components.
Today’s mission is to explore what the surface of the planet without running into any obstacles and to capture pictures of the planet to investigate the terrain. It is important that your team understands the terrain so that you can plan for upcoming missions.
One key part of the program is the obstacle avoidance since we do not want to damage the rover.
With your team decide how close you want your rover to get to an obstacle and what to do when an obstacle is encountered.
At what distance should the rover react to an obstacle (inches or cm)? What should the rover do if it encounters an obstacle?