Real-time Control/Flight Control Commands/General Real-time Commands

Send Real-time Control Command

During wayline flight or manual flight, you can call this command for real-time control of the aircraft, such as return-to-home, cancel return-to-home, flight task pause and resume operations

post/openapi/v2.0/device/{device_sn}/command

Request

  • Base URL
    (relative, and it does not resolve against the document’s source URL)
  • URL
    /openapi/v2.0/device/{device_sn}/command
  • Auth
    none required

Path parameters

device_snstring required

Dock Device SN

Headers

X-User-Tokenstring required

User JWT Token

X-Project-Uuidstring required

Project Number

X-Request-Idstring

Request Unique Identifier

X-Languagestring

Language

Request body

device_command'return_home' | 'return_home_cancel' | 'flighttask_pause' | 'flighttask_recovery' required

Command Type

Example request

{
  "device_command": "return_home"
}

Response

Operation Successful

codeinteger

Business status code, 0 means success

messagestring

Business Message

dataobject

Command dispatch result. This interface returns the synchronous receipt of command acceptance and only indicates whether dispatch succeeded; the actual command execution result is reported asynchronously via DRC/MQTT

Changes

No recorded changes to this operation across all 1 revision of this API.