Transponder

class mavsdk.transponder.AdsbAltitudeType(value)

Bases: Enum

Altitude type used in AdsbVehicle message

Values

PRESSURE_QNH

Altitude reported from a Baro source using QNH reference

GEOMETRIC

Altitude reported from a GNSS source

GEOMETRIC = 1
PRESSURE_QNH = 0
class mavsdk.transponder.AdsbEmitterType(value)

Bases: Enum

ADSB classification for the type of vehicle emitting the transponder signal.

Values

NO_INFO

No emitter info.

LIGHT

Light emitter.

SMALL

Small emitter.

LARGE

Large emitter.

HIGH_VORTEX_LARGE

High vortex emitter.

HEAVY

Heavy emitter.

HIGHLY_MANUV

Highly maneuverable emitter.

ROTOCRAFT

Rotorcraft emitter.

UNASSIGNED

Unassigned emitter.

GLIDER

Glider emitter.

LIGHTER_AIR

Lighter air emitter.

PARACHUTE

Parachute emitter.

ULTRA_LIGHT

Ultra light emitter.

UNASSIGNED2

Unassigned2 emitter.

UAV

UAV emitter.

SPACE

Space emitter.

UNASSGINED3

Unassigned3 emitter.

EMERGENCY_SURFACE

Emergency emitter.

SERVICE_SURFACE

Service surface emitter.

POINT_OBSTACLE

Point obstacle emitter.

EMERGENCY_SURFACE = 17
GLIDER = 9
HEAVY = 5
HIGHLY_MANUV = 6
HIGH_VORTEX_LARGE = 4
LARGE = 3
LIGHT = 1
LIGHTER_AIR = 10
NO_INFO = 0
PARACHUTE = 11
POINT_OBSTACLE = 19
ROTOCRAFT = 7
SERVICE_SURFACE = 18
SMALL = 2
SPACE = 15
UAV = 14
ULTRA_LIGHT = 12
UNASSGINED3 = 16
UNASSIGNED = 8
UNASSIGNED2 = 13
class mavsdk.transponder.AdsbVehicle(icao_address, latitude_deg, longitude_deg, altitude_type, absolute_altitude_m, heading_deg, horizontal_velocity_m_s, vertical_velocity_m_s, callsign, emitter_type, squawk, tslc_s)

Bases: object

ADSB Vehicle type.

Parameters:
  • icao_address (uint32_t) – ICAO (International Civil Aviation Organization) unique worldwide identifier

  • latitude_deg (double) – Latitude in degrees (range: -90 to +90)

  • longitude_deg (double) – Longitude in degrees (range: -180 to +180).

  • altitude_type (AdsbAltitudeType) – ADSB altitude type.

  • absolute_altitude_m (float) – Altitude in metres according to altitude_type

  • heading_deg (float) – Course over ground, in degrees

  • horizontal_velocity_m_s (float) – The horizontal velocity in metres/second

  • vertical_velocity_m_s (float) – The vertical velocity in metres/second. Positive is up.

  • callsign (std::string) – The callsign

  • emitter_type (AdsbEmitterType) – ADSB emitter type.

  • squawk (uint32_t) – Squawk code.

  • tslc_s (uint32_t) – Time Since Last Communication in seconds.

class mavsdk.transponder.Transponder(async_plugin_manager)

Bases: AsyncBase

Allow users to get ADS-B information and set ADS-B update rates.

Generated by dcsdkgen - MAVSDK Transponder API

name = 'Transponder'
async set_rate_transponder(rate_hz)

Set rate to ‘transponder’ updates.

Parameters:

rate_hz (double) – The requested rate (in Hertz)

Raises:

TransponderError – If the request fails. The error contains the reason for the failure.

async transponder()

Subscribe to ‘transponder’ updates.

Yields:

transponder (AdsbVehicle) – The next detection

exception mavsdk.transponder.TransponderError(result, origin, *params)

Bases: Exception

Raised when a TransponderResult is a fail code

class mavsdk.transponder.TransponderResult(result, result_str)

Bases: object

Result type.

Parameters:
  • result (Result) – Result enum value

  • result_str (std::string) – Human-readable English string describing the result

class Result(value)

Bases: Enum

Possible results returned for transponder requests.

Values

UNKNOWN

Unknown result

SUCCESS

Success: the transponder command was accepted by the vehicle

NO_SYSTEM

No system connected

CONNECTION_ERROR

Connection error

BUSY

Vehicle is busy

COMMAND_DENIED

Command refused by vehicle

TIMEOUT

Request timed out

BUSY = 4
COMMAND_DENIED = 5
CONNECTION_ERROR = 3
NO_SYSTEM = 2
SUCCESS = 1
TIMEOUT = 6
UNKNOWN = 0