Multi-Dock Task [In Adaptation]
Feature Overview
Some Docks support issuing multi-dock tasks. By configuring the takeoff Dock and the landing Dock through the task execution command, the aircraft can take off from and land on different Docks.
Issuing the Multi-Dock Task Command
When the task issuing stage is reached according to the sequence diagram, if both the takeoff and landing Docks respond successfully, you can issue the flighttask_execute command to start the multi-dock task. The key parameters in the flighttask_execute command are described below. A new multi_dock_task field is added to configure and validate the takeoff and landing Dock parameters, where:
- The
dock_infosfield contains the takeoff and landing Dock parameters. The two Docks selected to execute the multi-dock task must be set as the takeoff Dock and the landing Dock respectively.- For the takeoff Dock, set the
dock_typefield to "takeoff", set thesnfield to the takeoff Dock's device serial number, set theindexfield to the unique identifier of that Dock within this task, and fill the remaining fields with the latest reported values of the corresponding device properties of that takeoff Dock. - For the landing Dock, set the
dock_typefield to "landing". The other fields are filled in the same way as for the takeoff Dock, and you must ensure theindexvalues are not duplicated.
- For the takeoff Dock, set the
- The
wireless_link_topofield assembles the frequency pairing information of the three devices required to pair the aircraft with the two Docks. Thesecret_codeandcenter_nodefields are filled with the corresponding field values from the aircraft device propertywireless_link_topo. Theleaf_nodesfield must distinguish between the frequency pairing information of the takeoff Dock and the landing Dock and fill them in separately; thesdr_idandsnfields are filled with the takeoff Dock and the landing Dock respectively. Thecontrol_source_indexfield of the takeoff Dock comes from the Dock device property, and thecontrol_source_indexof the landing Dock must be the opposite of the takeoff Dock's. For example, if the takeoff Dock reports acontrol_source_indexof 1, then fill in 2 for this parameter on the landing Dock, and vice versa.
Note:
- The two Docks executing the multi-dock task must be calibrated using a network RTK service from the same source, and it is recommended to select "High-Precision RTK Task" for the wayline precision type
wayline_precision_type; otherwise there is a risk of crashing the aircraft. - You must ensure that an aircraft is present in the takeoff Dock at the moment the multi-dock task is executed.
- During the execution of the multi-dock task, if the aircraft triggers the return-to-home logic or the user manually issues a return-to-home command, the aircraft will autonomously select the return-to-home target Dock based on the battery level and the Dock locations. The planned landing Dock has higher priority than the takeoff Dock, and the aircraft will by default use the planned landing Dock as the return-to-home target Dock. Only when the planned landing Dock is unreachable will the takeoff Dock be used as the return-to-home target Dock. If, during wayline execution, the user wants to designate a specific Dock as the return-to-home target Dock, the newly added protocol
return_specific_homecan be used. - During the execution of the multi-dock task, if an altitude limit zone is encountered, the aircraft will return to home and execute the default return-to-home logic. The altitude is determined relative to the takeoff Dock, while the logic for other restricted flight zones is consistent with that of a normal wayline task.
- During the execution of the multi-dock task, the
{gateway_sn}in the Topic for issuing the aircraft live streaming commandlive_start_pushmust be based on thebest_link_gatewayfield currently reported by the aircraft. Moreover, to keep the aircraft's video stream continuous, when the aircraft'sbest_link_gatewayproperty changes, you must re-issue thelive_start_pushcommand using the gateway sn pushed in the latestbest_link_gatewayproperty as the{gateway_sn}in the Topic of thelive_start_pushcommand. - During the execution of the multi-dock task, for downlink commands issued to the aircraft, such as pause/resume/return-to-home commands, the
{gateway_sn}in the command's Topic must be based on thebest_link_gatewaycurrently reported by the aircraft, consistent with the live streaming command. - When executing the multi-dock task, once the takeoff and landing Docks have been set, the connection of Controller B will be preempted and disconnected.
Interaction Sequence Diagram
IoT represents the IoT layer on the server side, used for device access, maintaining device status. Task Service represents the upper-layer business system on the server side, used for device task management and issuing task commands.
Detailed Interface Implementation
- Dock device properties
- wireless_link_topo (required)
- rtcm_info (required)
- latitude (required)
- longitude (required)
- height (required)
- heading (required)
- home_position_is_valid (required)
- alternate_land_point (required)
- Aircraft device properties
- wireless_link_topo (required)
- best_link_gateway
- Wayline Management
- Service
- flighttask_execute (required)
- flighttask_stop (required)
- return_specific_home
- Requests
- flighttask_progress_get (required)
- Events
- return_home_info
- Service