Main Project: Delivery Route

This is the fifth challenge within the Robotics with GoPiGo and Python Curriculum.

Your task is to design a robot program to deliver a selection of mail to the residents of GoPiGo Drive, a small cul-de-sac containing 3 houses.

Learn how to how to use and calibrate the color sensor.

9. Test Your Code

Coverage testing

Does your code work for all three colors? Repeat the read, deliver & return routine three times, once for each color marked card, so that you’ve delivered a card to every house.

Test for failure cases

It is important to think about ways in which your program can fail and code up sensible responses for those situations. Consider what you would like to happen if you press the Deliver Letter button before you’ve read the address. Code up and test for that behavior.