Python Code
# Loading editor...
Debug Output
[AIDriver] Simulator ready
[AIDriver] Select a challenge to begin
BLE Gamepad Control
Disconnected Idle
0 · 0

Drag the joystick or use arrow/WASD keys to drive.

Telemetry
--- mm
Waiting for data
Brake Released
Motor Speeds 0 | 0
Requires Chrome (desktop or Android) with Web Bluetooth enabled.
2x
Arena (2000×2000mm)
Distance: --- mm
Ready - Select a challenge from the dropdown to begin Not Started
Help & Reference
AIDriver Methods
drive_forward(right_speed, left_speed) Drive forward with specified wheel speeds (0-255)
drive_backward(right_speed, left_speed) Drive backward with specified wheel speeds (0-255)
rotate_left(turn_speed) Rotate counter-clockwise on the spot
rotate_right(turn_speed) Rotate clockwise on the spot
brake() Stop both motors
read_distance() Read ultrasonic sensor (returns mm, or -1 if invalid)
Helper Functions
hold_state(seconds) Pause for specified seconds while logging
Speed Guidelines
Keyboard Shortcuts

Troubleshooting

Having issues? Download a debug log to share with your teacher or for troubleshooting.

Loading...

Initializing simulator...