Skip to main content

Flight

Telemetry

note

Telemetry with enum type (i.e. flight modes, device states) is represented using a pair of topics :

  • /dji/<enum telemetry> : code number of the enum value.
  • /dji/<enum telemetry>/desc : description text of the enum value.

Topics ending with */desc are only indicative and intended for humans, not for programs. They are not documented below.

/dji/flight/aircraftState

DescriptionAircraft’s current state.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property mode_code
Values
  • 0 : Unknown
  • 1 : Standby
  • 2 : Preparing takeoff
  • 3 : Takeoff prepared
  • 4 : Manual flight
  • 5 : Automatic takeoff
  • 6 : Wayline flight
  • 7 : Panorama flight
  • 8 : Smart follow
  • 9 : ADSB avoidance
  • 10 : Automatic return
  • 11 : Automatic landing
  • 12 : Forced landing
  • 13 : Emergency landing
  • 14 : Upgrading firmware
  • 15 : No connection
  • 16 : Advanced pilot assistance system
  • 17 : Virtual stick mode
  • 18 : Live flight control
  • 19 : Fixing RTK
  • 20 : Home point selection
  • 21 : POI flight

/dji/flight/aircraftState/reason

DescriptionReason why aircraft’s has switched to current aircraftState.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property mode_code_reason
Values
  • 0 : None
  • 1 : Low battery power
  • 2 : Low battery voltage
  • 3 : Critical battery voltage
  • 4 : Request from RC
  • 5 : Request from App
  • 6 : Radio signal lost
  • 7 : Request from third-party
  • 8 : Enter no-fly zone
  • 9 : Too close from home point
  • 10 : Too far from home point
  • 11 : Executing wayline
  • 12 : Above home point
  • 13 : Approaching ground
  • 14 : Low altitude limit protection overridden
  • 15 : Aircraft passing around
  • 16 : Fail to control altitude
  • 17 : Critical battery power
  • 18 : Advanced pilot mode engaged
  • 19 : Hardware malfunction
  • 20 : Touching Ground protecting disabled
  • 21 : RTH canceled
  • 22 : Blocked by obstacle
  • 23 : High wind

/dji/flight/taskState

DescriptionCurrent flight task state.
PushEvery 2s
Typeint
DJI BindingsDock property flighttask_step_code
Values
  • 0 : Unknown
  • 1 : Preparing task
  • 2 : Executing task
  • 3 : Recovering state
  • 4 : Updating custom flight area
  • 5 : Avoiding obstacle
  • 6 : Idle

/dji/flight/controlSource

DescriptionDevice currently in-control of the aircraft.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsDock property control_source
Values
  • 0 : Unknown
  • 1 : Dock
  • 2 : RC

/dji/flight/gear

DescriptionCurrent flight mode. Only relevant when controlled using the RC.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsDock property gear
Values
  • 0 : Unknown
  • 1 : A
  • 2 : P
  • 3 : NAV
  • 4 : FPV
  • 5 : FARM
  • 6 : S
  • 7 : F
  • 8 : M
  • 9 : G
  • 10 : T

/dji/flight/position

DescriptionGeographic position of the aircraft (i.e. latitude, longitude & altitude).
PushEvery 2s when aircraft is on
TypePosition
DJI BindingsAircraft properties latitude, longitude & height

/dji/flight/orientation

DescriptionAircraft orientation wrt the NED frame expressed as Euler angles in degrees.
PushEvery 2s when aircraft is on
TypeOrientation
DJI BindingsAircraft properties attitude_head, attitude_pitch & attitude_roll

/dji/flight/distance

DescriptionAircraft distance from the Dock in meters.
PushEvery 2s when aircraft is on
TypeDistance
DJI BindingsAircraft properties home_distance & elevation

/dji/flight/speed

DescriptionAircraft speed.
PushEvery 2s when aircraft is on
TypeSpeed
DJI BindingsAircraft properties horizontal_speed & vertical_speed

/dji/flight/home

DescriptionGeographic position of the home point (i.e. Dock or alternate landing site).
PushEvery 2s when aircraft is on
TypePosition
DJI BindingsAircraft properties home_latitude & home_longitude

/dji/flight/homeAlt

DescriptionGeographic position of the alternate landing site configured on the Dock.
PushEvery 2s when aircraft is on
TypePosition
DJI BindingsDock properties alternate_land_point

/dji/flight/distanceLimit/horizontal

DescriptionAircraft’s maximum horizontal distance allowed from the Dock in meters.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property distance_limit_status.distance_limit

/dji/flight/distanceLimit/horizontal/isNear

DescriptionTrue if aircraft is near the horizontal distance limit from Dock.
PushEvery 2s when aircraft is on
Typebool
DJI BindingsAircraft property distance_limit_status.is_near_distance_limit

/dji/flight/distanceLimit/horizontal/isOn

DescriptionTrue if horizontal distance limit from Dock is enabled.
PushEvery 2s when aircraft is on
Typebool
DJI BindingsAircraft property distance_limit_status.state

/dji/flight/distanceLimit/vertical

DescriptionAircraft’s maximum vertical distance allowed from the Dock in meters.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property height_limit

/dji/flight/distanceLimit/vertical/isNear

DescriptionTrue if aircraft is near the vertical distance limit from Dock.
PushEvery 2s when aircraft is on
Typebool
DJI BindingsAircraft property is_near_height_limit

/dji/flight/flyToHeight/mode

DescriptionCurrent height mode for the fly-to command.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property current_commander_flight_mode
Values
  • 0 : Unknown
  • 1 : Optimal height
  • 2 : Preset height

/dji/flight/flyToHeight/preset

DescriptionConfigured flight height for the fly-to command. Relevant if height mode is set to "preset height".
PushEvery 2s when aircraft is on
Typefloat
DJI BindingsAircraft property commander_flight_height

/dji/flight/rthHeight/mode

DescriptionCurrent height mode for the return-to-home command.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property current_rth_mode
Values
  • 0 : Unknown
  • 1 : Optimal height
  • 2 : Preset height

/dji/flight/rthHeight/preset

DescriptionConfigured flight height for the return-to-home command. Relevant if height mode is set to "preset height".
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property rth_altitude

/dji/flight/rcLost/strategy

DescriptionDetermines what to do when aircraft lose RC signal from the Dock.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property commander_mode_lost_action
Values

/dji/flight/rcLost/action

DescriptionAction to run when task exit due to RC signal loss.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property rc_lost_action
Values
  • 0 : Unknown
  • 1 : Hover
  • 2 : Land
  • 3 : RTH

/dji/flight/obstacleAvoidance/horizon/isOn

DescriptionTrue if horizontal obstacle avoidance is enabled.
PushEvery 2s when aircraft is on
Typebool
DJI BindingsAircraft property obstacle_avoidance.horizon

/dji/flight/obstacleAvoidance/downside/isOn

DescriptionTrue if downside obstacle avoidance is enabled.
PushEvery 2s when aircraft is on
Typebool
DJI BindingsAircraft property obstacle_avoidance.downside

/dji/flight/obstacleAvoidance/upside/isOn

DescriptionTrue if upside obstacle avoidance is enabled.
PushEvery 2s when aircraft is on
Typebool
DJI BindingsAircraft property obstacle_avoidance.upside

/dji/flight/battery/flightTime

DescriptionEstimated flight time left before battery is empty in seconds.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property battery.remain_flight_time

/dji/flight/battery/landingPower

DescriptionBattery power required to land now in percent.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property battery.landing_power

/dji/flight/battery/rthPower

DescriptionBattery power required to return-to-home now in percent.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property battery.return_home_power

/dji/flight/battery/totalPower

DescriptionCurrent battery power capacity in percent.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property battery.capacity_percent

/dji/flight/battery/alertThreshold/low

DescriptionUser-defined low battery alert threshold in percent. Can be configured from the RC.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property low_battery_warning_threshold

/dji/flight/battery/alertThreshold/critical

DescriptionUser-defined critical battery alert threshold in percent. Can be configured from the RC.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property serious_low_battery_warning_threshold

/dji/flight/localization/quality

DescriptionQuality of the position estimate of the aircraft.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property position_state.quality
Values
  • 0 : Unknown
  • 1 : No position estimate
  • 2 : Bad
  • 3 : Limited
  • 5 : Okay
  • 5 : Good
  • 6 : Excellent

/dji/flight/localization/gpsNum

DescriptionNumber of GPS satellites visible by the aircraft.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property position_state.gps_number

/dji/flight/localization/rtkNum

DescriptionNumber of RTK satellites visible by the aircraft.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property position_state.rtk_number

/dji/flight/localization/fixing

DescriptionPosition fix state.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property position_state.is_fixed
Values
  • 0 : Unknown
  • 1 : Idle
  • 2 : In progresse
  • 3 : Fixed
  • 4 : Failed

/dji/flight/radio/isConnected

DescriptionTrue if aircraft is connected to the dock radio.
PushEvery 2s
Typebool
DJI BindingsDock property wireless_link.sdr_link_state

/dji/flight/radio/quality

DescriptionQuality of the radio link between the dock and the aircraft.
PushEvery 2s
Typeint
DJI BindingsDock property wireless_link.sdr_quality
Values
  • 0 : Unknown
  • 1 : No signal
  • 2 : Bad
  • 3 : Limited
  • 4 : Okay
  • 5 : Good
  • 6 : Excellent

/dji/flight/radio/band

DescriptionFrequency band of the radio link between the dock and the aircraft in GHz.
PushEvery 2s
Typefloat
DJI BindingsDock property wireless_link.sdr_freq_band

/dji/flight/ridIsNormal

DescriptionTrue the Remote ID broadcast system if functioning as expected.
PushEvery 2s when aircraft is on
Typebool
DJI BindingsAircraft property rid_state

/dji/flight/stats/activationTime

DescriptionFirst time the aircraft has been used in seconds since Epoch.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property activation_time

/dji/flight/stats/count

DescriptionNumber of flights performed by the aircraft since activation time.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property total_flight_sorties

/dji/flight/stats/distance

DescriptionDistance flown by the aircraft since activation time in meters.
PushEvery 2s when aircraft is on
Typefloat
DJI BindingsAircraft property total_flight_sorties

/dji/flight/stats/duration

DescriptionAccumulated flight time of aircraft since activation time in seconds.
PushEvery 2s when aircraft is on
Typeint
DJI BindingsAircraft property total_flight_time

/dji/flight/strobe/isOn

DescriptionTrue if aircraft strobe light is on.
PushEvery 2s when aircraft is on
Typebool
DJI BindingsAircraft property night_lights_state

Schemas

Position

KeyTypeDescription
latitudefloatLatitude in degrees.
longitudefloatLongitude in degrees.
altitudefloatAbsolute altitude in meters.

Orientation

KeyTypeDescription
yawfloatHeading in degrees.
pitchfloatPitch in degrees.
rollfloatRoll in degrees.

Distance

KeyTypeDescription
horizontalfloatDistance in the horizontal plane.
verticalfloatDistance in the vertical plane.

Speed

KeyTypeDescription
horizontalfloatSpeed in the horizontal plane.
verticalfloatSpeed in the vertical plane.