Mission Instructions

Your mission is to create a robot that can explore remote, narrow canyons. First, you will create a sample canyon system with both a left and right turn. Then you will design, test, and refine your robot until it can navigate the canyon system independently.

7. Code: Enter the Canyon System

First things first, how will your robot get into the canyon system? 

Our program is pretty basic. We called this section, “Enter at your own risk!”

Now that your robot is inside the canyon system, what does it need to look for first?  Should your robot look for more room ahead of it, or should it look for an opening on the left? 

It would look a little silly if the robot missed a left turn at the beginning of a challenge, so we chose to have our robot check its side-facing distance sensor first. 

Check your plan above to remember what your robot should do if it does detect an opening to the left.  Better yet, find a way to use your “turn left” custom function that you created earlier!