Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 78 - Ai Robogenius
P. 78

    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?

                                     AI RoboGenius - VII
                     76

| 73 74 75 76 77 78 79 80 81 82 83 |