Page 80 - Ai Robogenius
P. 80

The robot's drive velocity is set to 100%, ensuring that it moves quickly.
                     The robot sets the turn velocity to 100%, which means it will turn at maximum speed.

                     The robot drives forward for 1600 mm and then turns right by 90 degrees to change direction.
                     The robot then enters a repeat loop, which will run 8 times.

                      Inside the loop, the robot sets the cursor to the next row, which prepares it for the next set of
                     actions.

                     Another loop repeats 8 times, where the robot checks if the DownEye detects green.
                     Ÿ   If green is detected, the robot sets the print colour to green and prints X. If green is not
                         detected, the robot sets the print colour to blue and prints X.

                     Ÿ  After this, the robot drives forward for 200 mm.
                      After each print action, the robot drives reverse for 1600 mm, turns 90 degrees right, drives
                     200 mm forward and then turns 90 degrees left. This sequence ensures the robot is ready
                     for the next loop iteration.



                   ECOTECH     Robots equipped with sensors like the Distance Sensor can detect objects ahead, preventing
                   ENERGY      collisions, which can be essential for safely navigating areas that require minimal human
                               interference, such as cleaning or waste processing zones.







                      �   VEXcode VR is an online coding environment that allows students to program
                         a virtual robot using block-based or text-based coding.

                      �   The VEX VR Robot is a virtual robot that students can program within the VEXcode VR platform.

                      �   In VEXcode VR, blocks are the building blocks of your program.
                      �   In VEXcode VR, you can create various shapes by programming the robot to move forward,
                         backward and turn at specific angles.
                      �   Hidden Pixel Art is an activity where students program a robot to detect colours using sensors.









                                                            robo check



                  A.  Tick ( ) the correct option.
                     1.   Identify  the  area  where you  arrange and  build  your  code  by  dragging  blocks  into  the
                         program’s logic.

                                  (i)  Workspace                            (ii)  Blocks category

                                (iii)  Code viewer                        (iv)  Monitor



                                 AI RoboGenius - VII
                 78
   75   76   77   78   79   80   81   82   83   84   85