Skip to main content

Wayline Flights

Service

/dji/wayline/start

DescriptionStart a wayline task. Returns as soon as the DJI Dock acknowledges the wayline request
RequestWaylineStart
ResponseNone
DJI BindingsService flighttask_prepare & flighttask_execute

Telemetry

/dji/wayline/progress

DescriptionProgress update on current wayline task
PushEvery ~2s when performing the task
TypeWaylineProgress
DJI BindingsEvent flighttask_progress

/dji/wayline/result

DescriptionFinal result of the wayline task
PushOnce when the task is finished
TypeWaylineResult
DJI BindingsEvent flighttask_progress

Schemas

WaylineStart

KeyTypeDescriptionRequired
flightIdstringUnique identifier of the wayline flight.Yes
flightParamsWaylineFlightParamsParameters for the wayline flight.No
wpmlFileWaylineFileWayline mission file to be executed.Yes
customFlightAreasWaylineFileCustom flight areas file to be used during the wayline flight.No
startBreakpointWaylineStartBreakPointOptional breakpoint to resume the wayline flight from.No

Sample

{
"flightId": "",
"flightParams": {
"rthHeight": 60,
"rcLostActionType": "rth",
"disableRcLostAction": false,
"disableRtkPrecision": false,
"disableAreasRefresh": true
},
"wpmlFile": {
"md5": "",
"data": "<?xml version=\"1.0\"..."
},
"customFlightAreas": {
"md5": "",
"data": "{\"type\":\"FeatureCollection\",..."
},
"startBreakpoint": {
"index": 0,
"state": "segment",
"progress": 0,
"waylineId": 0
}
}

WaylineFlightParams

KeyTypeDescription
rthHeightintReturn-to-home height in meters.
rcLostActionTypestringAction to take when remote controller signal is lost. One of: "hover", "land", "rth".
disableRcLostActionboolIf true, disables the RC lost action.
disableRtkPrecisionboolIf true, disables RTK precision mode during the flight.
disableAreasRefreshboolIf true, disables refreshing custom flight areas before starting the flight.

WaylineFile

info

One of md5 or data must be provided.

md5 is computed on the agent side so can only be provided from a /dji/wayline/info service call for an existing flight. data is stringified raw WPML for a wayline file or GeoJSON for custom flight areas.

KeyTypeDescription
md5stringMD5 checksum of the file data.
datastringBase64-encoded content of the file.

WaylineProgress

KeyTypeDescription
flightIdstringUnique identifier of the wayline flight.
statusstringCurrent status of the wayline flight. One of: "sent", "in_progress", "partially_done", "ok", "paused", "rejected", "failed", "canceled", "timeout" or "unknown"
stepWaylineStepCurrent step information of the wayline flight.
percentintCompletion percentage of the wayline flight (0-100).
waypointintTarget waypoint index

Sample

{
"flightId": "6812a48e1c1d0389017cc1c4",
"status": "in_progress",
"step": {
"code": 7,
"msg": "Entering startup check preparation and hatch opening preparation"
},
"percent": 10,
"waypoint": 0
}

WaylineStep

KeyTypeDescription
codeintNumeric code representing the current step.
msgstringDescription of the current step.

WaylineStartBreakPoint

KeyTypeDescription
indexintIndex of the waypoint or segment to resume from.
statestringState type of the breakpoint. One of: "waypoint" or "segment".
progressfloatProgress within the segment (0.0 - 1.0). Only used if state is "segment".
waylineIdintID of the wayline mission. Usually 0 for single-wayline missions.

WaylineResult

KeyTypeDescription
flightIdstringUnique identifier of the wayline flight.
codeintResult code of the wayline flight.
msgstringDescription of the result.
mediaCountintNumber of media files captured during the flight.
stopBreakpointWaylineStartBreakPoint(Optional) Breakpoint information where the flight stopped.

Sample

{
"flightId": "6812a5411c1d0389017cc1c5",
"code": 322283,
"msg": "RTH command sent by user; aircraft unable to complete task",
"mediaCount": 15,
"stopBreakpoint": {
"index": 0,
"state": "",
"progress": 0,
"waylineId": 0
}
}