Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 683 Bytes

File metadata and controls

26 lines (18 loc) · 683 Bytes

Docs for the Turning Right code snippet

Description

Move forward for 1000 mm, then turn 90 degrees to the right. After that, continue driving forward for an additional 200 mm autonomously from its current position.

Code Snippet

# Library imports
from vex import *

# Begin project code
# Driving Forward and turn 90 Degress to the right before driving foward again and stoping
drivetrain.drive_for(FORWARD, 1000, MM)
drivetrain.drive_for(RIGTH, 90, DEGREES)
drivetrain.drive_for(FORWARD, 200, MM)

Additional Information

None

Code Snippet Author(s)