Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 117 - 2629_Devagiri_C-8
P. 117

    Magnet blocks: These blocks are used for interacting with objects using a magnetic mechanism,
                        like picking up or releasing an object.

                         Drawing blocks: These blocks allow the robot to draw lines, shapes and patterns on the Art
                        Canvas playground as it moves.
                         Sensing blocks: These blocks allow the robot to detect its surroundings or internal status and
                        provide information for logical decisions.

                         Console blocks: These blocks  display  messages  or data  on the console  (monitor)  for
                        debugging, user interaction or status reporting.
                         Logic blocks: These blocks help the robot make decisions using conditions, comparisons and
                        logical operations. The Logic block category contains various subcategories of blocks, such as

                        Math, String, Event, Timer, MyBlocks and Comments.

                            THE DRIVETRAIN BLOCKS

                     In VEXcode VR, the Drivetrain blocks are used to control the robot’s movement. They include
                     commands to move the robot forward, backward, turn, set its speed and more. These blocks are
                     organised into three categories: Actions, Settings, and Values.

                     Some of the key movement blocks are as follows:

                                           Block                                          Description
                                                             Drivetrain -- Actions

                      drive block                                       Moves the drivetrain  in a chosen direction
                                                                        (forward or reverse) indefinitely.
                       drive  forward

                      drive for block                                   Moves the drivetrain in a chosen direction for
                                                                        a specific distance.
                       drive  forward  for  200  mm

                      turn block                                        Rotates  the drivetrain  in place  to  the left or
                                                                        right indefinitely.
                       turn  right

                      turn for block                                    Rotates  the  drivetrain  in  place  for a  specific

                                                                        number of degrees (left or right).
                       turn  right  for  90  degrees

                      turn to heading block                             Rotates the robot to a given absolute heading
                                                                        using the onboard gyro sensor.
                       turn to heading  90  degrees

                                                                                                                      115
                                                                                     VEXcode VR: Drive, Sense and Create

| 112 113 114 115 116 117 118 119 120 121 122 |