Page 94 - Ai Robogenius
P. 94

To clean the Coral Reef in VEXcode VR, follow these steps:

                    STEP - 1   Open your web browser, type https://vr.vex.com/ in the address bar and
                               press the Enter key or scan the QR code.

                   STEP - 2   Click on the SELECT PLAYGROUND button.

                   STEP - 3   Select the Coral Reef Cleanup playground.


























                               The when started block is already placed by default in the workspace.





























                   STEP - 4   Drag the forever block from the Logic-Control category and place it below the when
                               started block.

                   STEP - 5   Drag the if then else block from the Logic-Control category and place it inside the
                               forever block.


                   STEP - 6   Drag the FrontDistance found an object? block from the Sensing-Distance category
                               and place it into the condition space of the if block.



                                 AI RoboGenius - VIII
                 92
   89   90   91   92   93   94   95   96   97   98   99