Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 198 - CodePilot V5.0 C8
P. 198

    ● Turning and Navigation: After each pickup and drop cycle, the program checks if the count is
                            less than 3. If true, the robot turns right by 90 degrees, drives forward 800 mm, then turns left by
                            90 degrees. The variable count increases by 1, allowing the robot to track which stage it is on.

                                                                 Ask
                                                                           AGENT
                                                            OrangeAI
                        Program the VR Robot in VEXcode to navigate around obstacles to reach a goal. Use sensor checks
                        and turns to avoid obstacles and complete the path.

                               Study

                      TECH
                        T      ¢   Robot velocity: The speed you set for the robot so it knows how fast to move.
                        E
                        R      ¢   Loop: A bit of code that repeats the same set of instructions again and again.
                        M
                        S      ¢   Sensor: A small device that collects information (like distance or colour) for the robot.

                      REWIND RUN

                      «   Virtual robots are computer-simulated robots that you can program and control on a digital platform
                         or your computer screen.

                      «   VEXcode VR is an online platform that allows you to learn robotics and programming using virtual
                         robots, without requiring any physical hardware.
                      «   In VEXcode VR, the Drivetrain blocks are used to control the movement of the robot.
                      «   Drawing blocks allow drawing paths on the playground by controlling the robot’s movement.
                      «   Eye-sensing blocks help the robot use its eye sensors to interact with its environment visually.
                      «   Distance sensing blocks use the distance sensor to measure the space between the robot and obstacles.

                      «   Magnet blocks allow the virtual robot to pick up and drop magnetic disks using its built-in electromagnet.

                                                  LEARNING LOGS

                      A.  Tick ( ) the correct option.

                         1.  Which block is used to start a programme in VEXcode VR?
                                    (i)  when started                              (ii)  start

                                   (iii)  go                                      (iv)  run block

                      196
                            CodePilot (V5.0)-VIII

| 193 194 195 196 197 198 199 200 201 202 203 |