Page 199 - CodePilot V5.0 C8
P. 199
2. Identify the sensor that allows a robot to measure its orientation.
(i) Distance sensor (ii) Gyro sensor
(iii) Bumper sensor (iv) Eye sensor
3. Select the main purpose of the Workspace in VEXcode VR.
(i) Run simulations (ii) Drag and drop code blocks
(iii) Draw shapes (iv) Check sensor values
4. Select the control block that repeats a set of instructions endlessly until stopped.
(i) repeat (ii) while
(iii) wait until (iv) forever
5. Spot the sensor that reports the robot’s (X, Y) coordinate position and heading angle.
(i) Distance sensor (ii) Eye sensor
(iii) Location sensor (iv) Gyro sensor
B. Write ‘T’ for true and ‘F’ for false.
1. Bumper sensors are found on both sides of the robot.
2. The Playground window shows a real robot.
3. Control blocks help the robot decide what to do.
4. The ‘drive for’ block lets the robot move a specific distance.
5. The ‘set pen to color’ block can change the pen colour to red, yellow or green.
C. Fill in the blanks using the given hints:
1. The sensor helps the robot to turn to a specific angle. Hints
Turn for
2. To draw a shape, you must first put the pen . Down
3. The sensor detects the colour of the surface below the robot. Gyro
Set drive
4. The block sets the speed (percent) for forward and reverse driving. velocity
Down Eye
5. The block is used to rotate the robot in place for a specific number
of degrees (left or right).
D. Answer the following questions:
1. Explain the purpose of Drawing blocks in VEXcode VR.
2. Explain the use of the wait until block.
3. What are virtual robots?
197
VEXcode VR: Drive, Sense and Create

