Crate adsb

Crate adsb 

Source
Expand description

Parse ADS-B/Mode-S messages. Messages with the following Downlink Formats (DF) are supported:

  • DF 5: Surveillance identity (squawk code)
  • DF 17/18: Automatic Dependent Surveillance - Broadcast (ADS-B)
    • TC 1-4: Aircraft identification and category
    • TC 9-18: Airborne position
    • TC 19: Airborne velocity

Modules§

cpr
Decode aircraft positions encoded in Compact Position Reporting (CPR) format.

Structs§

CPRFrame
Aircraft position is broadcast as a set of alternating odd and even frames which encode position information using Compact Position Reporting (CPR).
ICAOAddress
Unique 24-bit ICAO address assigned to an aircraft upon national registration.
Message
ADS-B/Mode-S message.
ParserError
Error type used to convey parsing errors.
Position
Horizontal coordinates in the geographic coordinate system.
Squawk
16 bit transponder squawk code.

Enums§

ADSBMessageKind
Kind of ADSB message.
MessageKind
Kind of ADS-B/Mode-S message.
ModeSMessageKind
Kind of Mode-S message.
Parity
Frame parity.
VerticalRateSource
Source for vertical rate information.

Functions§

parse_avr
Parse message from a string with data in AVR format. Each message should start with a * and end with a ;. If successful, returns a tuple containing the parsed message and a slice of remaining unparsed data.
parse_binary
Parse message from binary data. If successful, returns a tuple containing the parsed message and a slice of remaining unparsed binary data.