Live Flight Controls/Remote Control
Function Overview
The live flight controls function is provided to solve the restriction that the drone and DJI Dock can not be immediately operated during the remote controlling process. At real scenes, the drone can response from idle state or pause the executing flight mission. Developer can control the device or payload through manual method. Through the live flight controls function, developer can get safe and reliable drone control, high real-time command sending and live streaming screen transmission, osd information pushing and payload control ability.
Live flight controls APIs can be divided into flight control commands (DRC commands), payload control commands, flyto commands and one-key taking off commands.
Flight control commands (DRC commands)
Drone Remote Control (DRC) uses MQTT protocol and add two new topics to represents upward link and downward link. MQTT Topic Definition provides introduction and example of drc Topic structure. After the server and device successfully build MQTT link, an EMQX Broker will be distributed to the DRC communication link from server to device for faster transmission and response. To use DRC commands, the live flight controls control mode should be entered in advanced. DRC commands usually do not limited by flight control authority, but the
DRC-flight control Method: drone_control
must need the flight control authority.
Figure. DRC link

Payload control commands: All the payload control commands require payload control authority. Current payload control commands control the camera and gimbal actions to realize the payload operations like photo taking, camera zooming in or zooming out, gimbal reset and so on. Therefore the target information can be obtained through these payload operations. DJI Dock 3 supports the control of DJI official payloads, including AL1 searchlight and AS1 megaphone. For details on the relevant usage procedures, please refer to the "Megaphone Control" and "Searchlight Control" sections below.
Flyto commands and one-key taking off commands: flyto commands and one-key taking off commands are used to make the drone fly to the target point and hover. The difference is at the applicable scene. The flyto commands are applicable when the drone is in the air. The one-key taking off commands are applicable when the drone is in the dock. If developer uses the one-key taking off command to make the drone reach the target point, flyto commands can be continuously issued later. Currently, single target point is supported.
Simulated Debugging
Live flight controls newly supports simulated flights. Once the simulator is enabled, the aircraft will go through the preparatory steps for the flight mission, such as opening the dock cover and starting up. The aircraft will follow the specified longitude and latitude fields of simulate_mission
API as the starting point data for the flight mission execution, but aircraft will not actually take off. The aircraft's data during the execution of the task will be reported as usual via the osd
.
Note: Simulated flight mission will not enable RTK. After the simulated debugging, if outdoor flight mission is going to execute, stable RTK signal should be obtained for normal and safe execution.
Live Flight Controls 2.0
CloudAPI V1.7 has introduced Live flight controls 2.0, providing safer and more intelligent flight behaviors.
For the "Method: takeoff_to_point", if the "Method: security_takeoff_height" and the "Method: commander_flight_height" have different height values, the aircraft will climb to the higher of the two heights.
For the "Method: fly_to_point", the aircraft will climb to the specified "Method: commander_flight_height". Developers can adjust this flight height by setting the "commander_flight_height" field(rw) in the aircraft's thing model. This height adjustment is globally effective.
Live flight controls 2.0 is backward compatible with Live flight controls 1.0. If you use Live flight controls 2.0 with compatible firmware but send Live flight controls 1.0 protocol content:
- For the "Method: takeoff_to_point", the "commander_flight_height" field will be set to 2 meters.
- For the "Method: fly_to_point", the aircraft will use the default minimum value (2 meters) for the "commander_flight_height" field as the flight height.
Live Flight Controls Interaction Sequence Diagram
Note: To avoid the drone damage, executing the flight control authority seizure and payload control authority seizure are recommended before issue the live flight controls APIs.

Megaphone Control
The AS1 megaphone control function allows the drone to make voice announcements and calls while performing tasks, which is suitable for emergency command, public safety, event promotion and other scenarios. The following are the main functions of the megaphone:
TTS (text-to-speech) playback:
Start TTS playback: Through the command
drc_speaker_tts_play_start
, users can convert text content into speech and play it through the megaphone.Stop TTS playback: Through the command
drc_speaker_play_stop
, users can stop the current TTS playback.Volume control:
Set volume: Through the command
drc_speaker_play_volume_set
, users can adjust the volume of the megaphone.Playback mode setting:
Set playback mode: Through the command
drc_speaker_play_mode_set
, users can set the playback mode of the megaphone, such as single playback, loop playback, etc.Replay:
Replay: Through the command
drc_speaker_replay
, the user can replay the last voice content.
Megaphone Control Interaction Sequence Diagram
Searchlight Control
The AL1 searchlight function allows the drone to illuminate when performing tasks, which is suitable for night search and rescue, inspection, security and other scenarios. The following are the main functions of the searchlight:
- Calibration:
- Searchlight calibration: Through the command
drc_light_calibration
, the user can calibrate the searchlight to ensure the accuracy of its illumination direction. - Fine adjustment:
- Searchlight fine tuning: Through the command
drc_light_fine_tuning_set
, the user can fine-tune the illumination angle of the searchlight. - Mode setting:
- Set searchlight mode: Through the command
drc_light_mode_set
, the user can set the working mode of the searchlight, such as constant light mode, flashing mode, etc. - Brightness control:
- Set brightness: Through the command
drc_light_brightness_set
, the user can adjust the brightness of the searchlight.
Searchlight Control Interaction Sequence Diagram
Detailed API Realization
Notes: Only when the drone is in the air, the media files generated by the payload control commands will be pushed by the media management function.
- Flight control commands (DRC commands)
- Payload control commands
- flyto commands
- One-key taking off commands