1. A command is one instruction
TAKEOFF starts the drone. MOVE 160 moves it 160 pixels. One line means one step in the mission.
0 to Infinity Coding Lab
Write a mission script, run it, watch the top-down arena, and study the drone camera view. This page teaches sequencing, coordinates, heading, speed, safety checks and animation logic.
Lesson
TAKEOFF starts the drone. MOVE 160 moves it 160 pixels. One line means one step in the mission.
The computer runs the script from top to bottom. MOVE before TAKEOFF is ignored because the drone is still on the ground.
The arena uses x from left to right and y from top to bottom. Use GOTO x y to move to a waypoint.
TURN 90 changes the direction. After turning, MOVE follows the new heading.
The simulator checks boundaries, obstacles and battery. When something unsafe happens, the mission stops with a clear message.
JavaScript uses requestAnimationFrame to update the drone and redraw the arena smoothly.
Grid step: 50 pixels. Shift+Click inside the arena to add a GOTO x y line.