You are on page 1of 1

File VEXcode Project

TUTORIALS LEARN UNDO REDO SELECT PLAYGROUND OPEN PLAYGROUND START STEP STOP SHARE FEEDBACK

Code

Drivetrain
Drivetrain

drive forward
Magnet ▶ EXPAND HIDE ACTIVITIES CLOSE

drive forward for 200 mm   when started

Looks set pen to color black

move pen down ▶

turn right turn right for 90 degrees   ▶


Events
▶ drive forward for 1800 mm  

repeat 9 ▶

turn right for 90 degrees   turn left for 90 degrees ▶  


Control
▶ turn left for 90 degrees   ▶

drive forward for 1800 mm


▶  
turn to heading 90 degrees  
Sensing turn right for 90 degrees   ▶

drive forward for 200 mm
▶  

turn right for 90 degrees   ▶


Operators turn to rotation 90 degrees  
drive forward for 1800 mm  

Variables
stop driving

My Blocks

set drive velocity to 50 %
Comments

set turn velocity to 50 %

set drive heading to 0 degrees

You might also like