Design, Develop, and Iterate on your Project - Python
Answer the following questions in your engineering notebook as you design your project.
- What do you want to program the robot to do? Explain with details.
- How many conditions will your project need to check in the if else statement?
- Remember that the LeftOrRight project only needed one more condition after a press of the screen was detected.
- This project uses four buttons: left upper, left lower, right upper, and right lower. How many conditions will the project need to check after detecting that the screen has been pressed? Explain with details.
- Hint: The project can check if the screen is pressed by using an if else statement. Then you will need to nest three if else statements within the if else statement, with some nested inside of each other.
Follow the steps below as you create your project:
- Plan out the conditions that your project needs to check using drawings and pseudocode (Google Doc / .docx / .pdf). Also, plan for the part of your project that will draw the four buttons on the screen. Decide on their colors.
- Use the pseudocode you created to develop your project.
- Test your project often and iterate on it using what you learned from your testing.
- What could you add to your project to better control the Claw and Arm Motors? Explain with details.
- Share your final project with your teacher.
If you're having trouble getting started, review the following:
-
Creating a Stop Button example project
# Begin project code while True: drivetrain.drive(FORWARD) if brain.screen.pressing(): drivetrain.stop() while brain.screen.pressing(): wait(5, MSEC) wait(5, MSEC)
- Using if-else Statements in VEXcode V5 Python (Google Doc/.docx/.pdf)
- Previous version of your LeftOrRight project