pyModeS.decoder.bds.bds09 module

pyModeS.decoder.bds.bds09.airborne_velocity(msg, source=False)[source]

Decode airborne velocity.

Parameters
  • msg (str) – 28 hexdigits string

  • source (boolean) – Include direction and vertical rate sources in return. Default to False. If set to True, the function will return six value instead of four.

Returns

Four or six parameters, including:
  • Speed (kt)

  • Angle (degree), either ground track or heading

  • Vertical rate (ft/min)

  • Speed type (‘GS’ for ground speed, ‘AS’ for airspeed)

  • [Optional] Direction source (‘TRUE_NORTH’ or ‘MAGENTIC_NORTH’)

  • [Optional] Vertical rate source (‘BARO’ or ‘GNSS’)

Return type

int, float, int, string, [string], [string]

pyModeS.decoder.bds.bds09.altitude_diff(msg)[source]

Decode the differece between GNSS and barometric altitude.

Parameters

msg (str) – 28 hexdigits string, TC=19

Returns

Altitude difference in feet. Negative value indicates GNSS altitude below barometric altitude.

Return type

int