Ops Manager Learn 4: Turn a Corner
This is the fourth challenge within the Robotics with GoPiGo and Python Curriculum.
Your task is to design a robot program that increases the volume of products that Amazing.com can ship out to its customers on a daily basis without increasing the number of robot pickers it employs.
Learn how to program and calibrate the Line Follower while they try to design an efficient system.
4. Scaffolding
Before we start sending our robot careening down the line, let's do some code that can be manually tested.
Let’s write some code to repeatedly read the line follower, decide on an appropriate course of action according to the above pseudocode and report back the value read and the decision made.
Type the code below into the Main Code cell.
NOTE:
- elif is python’s way of saying else if.
- The instructions within the elif are only executed f none of the previous conditions have been met and the stated conditions apply.
- You can use any number of elifs between the if and the else conditions to build up an arbitrary number of options.