Page 99 - Ai Robogenius
P. 99
STEP - 15 Click on the Start button to run the program.
« In VEXcode VR, a sensor is a tool that helps the robot understand what’s
around it.
« The Magnet block is used to control the magnet’s power in your program.
« The Console blocks in VEXcode VR are used for displaying information, such as messages or
values, while the robot is running.
« In VEXcode VR, logic is used to create a set of instructions that guide the VR robot to perform
specific tasks.
« Control blocks are used to decide when, how and how often the robot should carry out an action.
« Operators are used to perform calculations within your program.
« In VEXcode VR, event blocks are used to start specific actions or behaviours when certain.
« Variable blocks are used to store values like counts, scores or distances and track changes in a
project.
« Conditions are met, like when an event happens or when the program begins.
« In the VEXcode VR simulation, the coral reef environment teaches students about the importance
of keeping oceans clean.
« The Number Grid Map helps you practise navigation and control using coordinates.
The robot moves in a zigzag pattern across the Number Grid Map to reach number 100. It turns
right and drives forward across one row, then turns left to move to the next. Each time it completes
a row, the variable AIRO increases by one. This continues until the robot reaches the last number,
where it stops and ends the project.
CHALLENGE CHAIN Robo Check
Modify your zig-zag program so the robot moves backward to return to its starting point after A. Tick ( ) the correct option.
reaching number 100.
1. Identify the sensor that helps the robot measure how far an object is.
(i) Distance (ii) Eye
(iii) Bumper (iv) Magnet
2. Spot the block that displays a message or value on the Console.
(i) set print color (ii) clear all rows
(iii) set cursor to next row (iv) print
3. Mark the block that repeats the enclosed code endlessly until the program is stopped.
ECOTECH With the help of VEXcode VR, students can simulate pollution control by programming (i) repeat (ii) forever
ENERGY robots to monitor air or water quality.
(iii) while (iv) if then
Sensors, Logic and Maze Navigation
97

