How to Turn Left and Right - V5 Clawbot - VEXcode V5 Text
This example program shows how to program the V5 Clawbot to turn left and right using VEXcode V5 Text.
How it works
This program used the
turnFor(degrees, units) instruction to turn the robot for a specified degree. Degrees can be specified by using a numeric value.
You can specify the units by using
degrees. A positive numeric value can be used to turn the robot to the left and a positive number value to move it to the right.
Steps executed in the program:
- The Drivetrain is set to turn 90 degrees to the left.
- The program will wait 1 second before executing the next line of code.
- The Drivetrain is set to turn the robot in the opposite direction which is 180 degrees to the right.