This coding center uses an educational Python subset.
The following syntax is not supported in this simulator. Using it will produce a syntax error.
Uses the same serial commands as the real SYUBEA drone controller. power is 20-500 and time_ms is 100-10000. The airgo_usb.h tab contains working code that validates variables → builds the command → sends it, and you can run it directly from the tab.
| Function | Description |
|---|---|
airgo_usb.connect(port="COM3") | Virtual serial connection (default COM3) |
airgo_usb.disconnect() | Disconnect |
airgo_usb.start() / airgo_usb.stop() | Motor start / stop |
airgo_usb.takeoff() / airgo_usb.land() | Takeoff / land |
airgo_usb.forward(power=200, time_ms=1000) | Forward |
airgo_usb.back(...), airgo_usb.left(...), airgo_usb.right(...) | Back / left / right movement |
airgo_usb.up(power=200, time_ms=1000) / airgo_usb.down(...) | Up / down (uses 60% of power) |
airgo_usb.cw(...) / airgo_usb.ccw(...) | Clockwise / counterclockwise rotation |
airgo_usb.speed(level) | Speed level 1-3 |
airgo_usb.battery() | Battery check (simulator 100%) |
airgo_usb.funled(), airgo_usb.gyroreset(), airgo_usb.headless(), airgo_usb.mapping_start() | LED / gyro / headless / binding |
airgo_usb.emergency() | Emergency stop |
airgo_usb.send("forward 200 1000") | Send a serial command directly |
airgo_usb.wait(sec), time.sleep(sec) | Wait |
airgo_usb.forward_cm(cm, power=200) | Move forward in cm (helper) |
airgo_usb.back_cm, left_cm, right_cm, up_cm, down_cm | cm movement helpers |
airgo_usb.turn_right(deg, power=200) / airgo_usb.turn_left(...) | Angle turn helpers |
Press the Commands ▼ button on the drone_program.py line to insert takeoff, land, move, rotate, altitude and setting commands directly into the code. Edit the inserted power/time_ms numbers as needed.
Running shows [SEND] and [RECV] logs. These reproduce the real controller serial commands, but the web version does not connect to a physical port. A virtual drone is prepared automatically; calling airgo.connect() shows the connection log.
Code is auto-saved in the browser. Save downloads drone_program.py; Open loads a local .py file.
This page is a web 3D simulation. For real drone control, use the Resources SYUBEA Drone Controller (v1.01).