Step 3

The plan


The first step in our plan is pretty easy because we’ve done it before (in the “Storm the Castle” project). We’ll need to use our sensors to detect if we are on a red line, if we are do something to make sure we don’t fall off the map.

The other step in our plan is going to rely on thinking about what other tools we have available to us. Our Vex robot has a distance sensor that tells it if there is an object somewhere in front of it, and its distance if there is one. (This is why it was important to know the objects were on top of the floor, the distance sensor can only detect things in front of it.)

  • Drive forward until we hit a red line
  • Once we do, back up and turn until we see an structure in front of us
  • After detecting a structure, drive forward until we hit a red line
  • Repeat this process
  • When you are ready to see the code for this plan, move on to the next page.