Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 54 - RoboGenius Pro C7
P. 54

    turn right for 90 degrees block
                                       drive forward for block and change it to 1600 mm

                                       Another turn right for 90 degrees block

                        STEP - 7   Click on the START button to make the robot draw a rectangle.

                      This will draw a rectangle with short sides of 600 mm and long sides of 1600 mm.

                            Ask AIRO

                           Create a program to draw a pentagon using VEXcode VR by setting the correct distance and
                           turning angle.

                                                             CHALLENGE CHAIN
                        1.  How would you refactor the code to use a custom function for drawing one side of the rectangle?

                        2.  What changes would you make to draw a rectangle with 45-degree turns at each corner?

                                     RoboGenius Pro - VII
                     52

| 49 50 51 52 53 54 55 56 57 58 59 |