V5 Drive Sim

Paste your VEXcode V5 Python, press Run, and watch a stand-in robot drive it on the field.

Loading Python…

main.py

Ctrl+Enter runs

Field

Home Every run starts here.
Clicking the field
100%
0.00 / 0.00 s
x0.0 in
y0.0 in
heading0°

Reference path

No path yet

Lay out the route you expect. The robot only ever runs your code; this path is what the run gets checked against.

Console

click a line to jump there
Output from print(), brain.screen and the simulator shows up here.

Brain screen

Motors

No motors yet.
What the simulator understands

Driving: DriveTrain and SmartDrive with drive, drive_for, turn, turn_for, turn_to_heading, turn_to_rotation, stop, set_drive_velocity, set_turn_velocity, heading, rotation. Wheel size, track width and gear ratio come from your DriveTrain line.

Motors: Motor and MotorGroup with spin, spin_for, spin_to_position, stop, set_velocity, position, velocity. Gear cartridges set top speed (red 100, green 200, blue 600 rpm). Without a DriveTrain, motors whose variable name contains left or right drive the robot. Other motors (arms, intakes) show up in the Motors list.

Sensors: Inertial and Gyro read the simulated heading. Distance measures to the field wall in front of the robot. brain.timer uses simulated time. Bumpers, controller sticks and buttons always read zero or not pressed.

Timing: wait(ms) advances simulated time (default units are milliseconds, like VEXcode). Code in a Competition template runs autonomous(). Driver control and Thread are not simulated. A run stops at 60 s of robot time, or after 8 s of real time if a loop never waits.

Simplifications: motors reach speed instantly, wheels never slip, and turns are exact. Your real robot will drift a bit. Set motor reverse flags so that FORWARD drives the robot forward, the same way VEXcode expects.