Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 66 - RoboGenius Pro C8
P. 66

    Sensing-Location
                      This sensor tells the robot its exact position on the grid. It helps the robot know where it is and
                      move to specific location. Some of the important Location sensing blocks are as follows:

                                  Block                                          Description

                                                     This block measures the robot’s position on the X and Y-axis in
                        position x  in  mm
                                                     millimetres.

                        position angle in degrees    This block measures the robot’s orientation or angle in degrees.

                      MAGNET IN VR PROGRAMMING

                      The Magnet block is used to control the magnet’s power in your
                      program. The block  has the option  to  set  the magnet’s  power        energize Magnet  to  boost
                      to  boost or  drop. If  you choose  boost, the magnet  becomes
                      energized and its power increases. If you choose drop, the magnet’s power is turned off or reduced.
                      This helps you control how the magnet behaves in your project.

                      CONSOLE IN VR PROGRAMMING
                      The Console blocks in VEXcode VR are used for displaying information, such as messages or
                      values, while the robot is running. It acts as a virtual display screen that shows the output of
                      your program. You can use the Console block to print information like numbers, sensor values
                      or messages, helping you track the robot’s status or program execution. Some of the important
                      Console blocks are as follows:

                                   Block                                          Description

                         print  VEXcode                This block displays a message or value on the console.

                         set cursor to next row        This block moves the cursor to the next line in the console.

                         clear all rows                This block clears all the previous output from the console.

                                                       This block sets the number of decimal  places  the console  will
                         set print precision to  0.1
                                                       display for numbers.

                         set print color  black        This block changes the colour of the text displayed in the console.

                      LOGIC IN VR PROGRAMMING

                      In VEXcode VR, logic is used to create a set of instructions that guide the VR robot to perform
                      specific tasks. Logic helps control how the robot reacts to different situations and ensures it follows
                      a sequence of steps correctly. Here are the main types of logic:

                                     RoboGenius Pro - VIII
                     64

| 61 62 63 64 65 66 67 68 69 70 71 |