Performance Test 2

moveForward(LOW_FORWARD, 6);
turnRight(85);
moveForward(LOW_FORWARD, 15); // Poke the Wrench
moveForward(-1 * MID_FORWARD, 30);
moveForward(LOW_FORWARD, 4); // Ready for buttons
turnRight(-90);
moveForward(LOW_FORWARD, 1.5);
pressButton(isBlue()); // Presses the button
turnRight(90);
moveForward(-1 * MID_FORWARD, 10);
moveForward(LOW_FORWARD, 12); // Back to the center
turnRight(90);
moveForward(LOW_FORWARD, 10);
moveForward(HIGH_FORWARD, 10); // Ram the finish button
break;

Algorithm for Performance Test 2:

  1. Move forward out of starting area
  2. Turn right
  3. Move forward to poke the wrench
  4. Move backwards, squaring up
  5. Move forward
  6.  Turn left
  7.  Move forward, over the button board light
  8.  Read the light, and press the corresponding button
  9.  Turn right
  10.  Move backwards, squaring up
  11. Move forward
  12. Turn right
  13. Move forward into the final button