Real-time Control Tutorial
Overview#
The Real-time Control module supports real-time operations for device control permission and flight control commands, covering:Control Permission Management: Query the current ownership of device control permission (holder, whether preemptible) and the cloud control permission status, covering both project and organization scopes.
Flight Control Commands: Issue real-time control commands during wayline or manual flight (return-to-home, pause, resume, etc.), query command execution status, and manage real-time wayline task dispatch and takeoff/landing coordination.
Control permission status query interfaces are read-only displays; acquisition and release of control permission still go through the Device Management module's Acquire Control Permission (POST /openapi/v2.0/device/control) / Release Control Permission (DELETE /openapi/v2.0/device/control) interfaces.
Real-time control command dispatch requires that the corresponding aircraft control permission is currently held.
The Takeoff/Landing Coordination Area (TCA) is used for takeoff/landing conflict detection in multi-dock scenarios. The query interface directly returns real-time occupancy status.
Interface Usage Flow#
Control permission status query:
Real-time control command dispatch and execution status query:
Wayline task real-time control and takeoff/landing coordination:
1.
When displaying the control permission dashboard, call Query Device Control Status (Project Device) (GET /openapi/v2.0/topologies/cmds/control/status), Query Device Control Status (Organization Device Ops) (GET /openapi/v2.0/organizations/{uuid}/manage-devices/cmds/control/status), and Get Cloud Control Status (GET /openapi/v2.0/cloud-controls) as needed to obtain read-only control permission and cloud control status.
2.
When intervention with the aircraft is needed during flight, call Send Real-time Control Command (POST /openapi/v2.0/device/{device_sn}/command) to issue real-time control commands (such as return-to-home / cancel return-to-home / pause / resume), and use Query Device Command Execution (GET /openapi/v2.0/organizations/{uuid}/manage-devices/cmds) to track command execution progress.
3.
When handling wayline real-time control, you can call Get Wayline Task Default Name (GET /openapi/v2.0/flight-tasks/default-name) to pre-generate a task name, and Get Active Wayline Tasks (GET /openapi/v2.0/workspaces/{workspace_id}/flight-tasks/in-flight) to view current active tasks.
4.
In multi-dock coordination scenarios, call Query TCA Real-time Status (GET /openapi/v2.0/workspaces/{workspace_id}/groups/tcas) to query the real-time occupancy of the takeoff/landing coordination area to avoid takeoff/landing conflicts.
Modified at 2026-05-26 14:32:16