You are on page 1of 1

File VEXcode Project SELECT OPEN

TUTORIALS LEARN UNDO REDO START STEP STOP SHARE FEEDBACK


PLAYGROUND PLAYGROUND

Code

Drivetrain when started

Drivetrain set drive velocity to 100 %

set turn velocity to 100 %

drive forward set pen color

move pen down


Magnet
drive forward for 800 mm and don't wait

forever
drive forward for 200 mm
if DownEye detects green ? then
Looks
turn right for 90 degrees

drive forward for 200 mm

turn right turn left for 90 degrees


Events
drive forward for 400 mm

turn right for 90 degrees

drive forward for 700 mm


Control turn right for 90 degrees
if DownEye detects green ? then

turn right for 90 degrees

Sensing
turn to heading 90 degrees drive forward for 250 mm

turn left for 90 degrees

drive forward for 425 mm

Operators turn right for 90 degrees

turn to rotation 90 degrees drive forward for 360 mm

Variables

stop driving

My Blocks
EXPAND HIDE ACTIVITIES

set drive velocity to 50 %


Comments

set turn velocity to 50 %

set drive heading to 0 degrees

You might also like