Robot with pots code updated

Use the POTS code and the "robot test code" in conjunction