跳到主要内容

Command Flight

Overview

The purpose of opening the command flight function is to solve the limitation of real-time operations during remote control of drones and docking stations. In practical application scenarios, the drone can respond from an idle state or pause an ongoing flight mission. Developers can continue to control the device or payload manually. Through the command flight function, developers can achieve safe and reliable drone control, high real-time command issuance, live video transmission, OSD (On-Screen Display) information reporting, and payload control capabilities.

The command flight API is divided into flight control commands (DRC), payload control commands, flyto commands, and one-click takeoff commands.

  • Flight Control Commands (DRC)

    DRC (drone remote control) uses the MQTT protocol and introduces two new topics representing uplink and downlink. The [MQTT Topic Definition] provides an introduction and examples of the new DRC topic structure. Once the MQTT connection between the cloud and the device is successfully established, an EMQX broker can be assigned specifically for the DRC communication link between the cloud and the device, making transmission and response faster. The DRC commands require that the command flight control mode be enabled in advance. DRC commands are generally not subject to flight control rights, but the use of DRC-Flight Control Method: drone_control must have flight control rights.

DRC-link

  • Payload Control Commands: All payload control commands require payload control rights. Currently, payload control commands manage the camera and gimbal actions, allowing operations such as taking photos, recording videos, camera zoom, and gimbal reset. These operations are used to capture information from the target.

  • Flyto Command and One-click Takeoff Command: Both the flyto and one-click takeoff commands are used to make the drone fly to a target point and hover. These commands can be executed while the drone is either in a propeller-off state or hovering in the air.

Command flight sequence diagram

Detailed Interface Description

  • Note:
    • The Command Flight API section is introduced according to the order of Topic types, so please pay attention to understanding the sequence.
    • Only media files captured through payload control commands during drone waypoint missions will be uploaded via the media management function.

Command Flight

  • Flight Control Commands (DRC Commands)

    Payload Control Commands

    Flyto Command

    One-click Takeoff Command