In this lesson, you'll code your VEX AIM Coding Robot to once again react, but this time to AprilTag IDs! You’ll explore how the example project from the end of unit 7 was constructed so you can understand more about If blocks (also known as “if then”) and how to build decision making into your code.
Watch the video below to learn about:
- How to ask questions in a project with If blocks.
- How to collect data from AI Vision in a project.
Guided Practice
FYI - Organizing Code with Comments
Comments can be used to add explanations or notes within a VEXcode project. They do not affect how the project runs and are useful for clarifying logic, documenting a plan, or otherwise communicating with others who may read the code. While the blocks in the project tell you what the robot is doing, the comments in a project tell you why the robot is doing that behavior or set of behaviors.
Watch this video to learn:
- How to add a Comment block to your project.
- How to add a Note to your project.
See these resources for additional information:
Wrap-Up
Select Next > to move to the next lesson.
