Draw Square Sides 1 and 2
Now that the 'Variables' project is created, you will use variables to code the arm on the Workcell to make linear movements along the x and y-axis. You will add blocks to your project to draw a square.
In VEXcode V5, follow the steps in this video to add a [Linear move] and (Add) block to the project. These blocks are used to code the arm to move 2 inches from the starting x-value, drawing the first side of the square.
Download and run the project. The arm will draw the first side of the square by moving 2 inches from the starting x-value.
If your arm did not draw the first side of the square, notify your teacher.
Once you have finished coding the arm to draw the first side of the square, stop the project.
Follow the steps in this video to add another [Linear move] and (Add) block to the project. These blocks are used to code the arm to move 2 inches from the starting x and y-values, drawing the second side of the square.
Download and run the project. The arm will draw the first and second sides of the square by moving 2 inches from the starting x and y-values.
If your arm did not draw the two sides of the square, notify your teacher.
Once you have finished coding the arm to draw the first two sides of the square, stop the project and check in with your teacher.