Skip to content
UAVProg
Languageen
Simulator

Simulator

Your first flight

Open a lesson, take off, move, stop and land in the simulator.

From your dashboard, open the assigned course and a lesson that uses the simulator. Wait for the editor and drone to become ready; starting a session can take a few minutes.

The student dashboard with assignments and learning tools

Start with the lesson assigned by your teacher.

Build the program

  1. Open APEX GD240 in the blocks toolbox.
  2. Drag active fly onto the workspace and connect take off below it.
  3. Add fly, choose Front and speed 1.
  4. Add wait from Timing and set it to 2 seconds.
  5. Add another fly block with speed Stop, then a short settling wait.
  6. Finish with land and press Run.

Drag a block out of the real toolbox. Connect the other blocks below it.

Choose direction in the fly block. The viewing camera does not define the movement axes.

Connected active fly, take off, fly, wait, stop, settling wait and land blocks

Read the connected program from top to bottom. A loose block can become a separate command stack.

The drone in the air during a simulator run

The aircraft climbs after take-off. Observe the actual movement and telemetry.

Why wait and stop?

fly starts movement and immediately passes control to the next instruction. It does not travel a fixed distance or wait for arrival. Use start, wait, stop, then allow time to slow down.

Generated by Blocksfirst-flight.py
drone.active_fly()
drone.takeoff()
drone.fly('forward', 1)
time.sleep(2)
drone.fly_stop()
time.sleep(0.5)
drone.land()

This is the program body. The editor adds connection and disconnection code. Open the <> panel to read what your blocks generated.

A longer example uses Front, Right, Back and Left in the world frame, with time to move and brake between commands, then lands.

Finishing the code without a landing command does not guarantee a landing. To finish an active flight, use the toolbar landing control as appropriate. See Drone blocks and Common mistakes.

Last updated