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).
- ICAO
Address - Unique 24-bit ICAO address assigned to an aircraft upon national registration.
- Message
- ADS-B/Mode-S message.
- Parser
Error - Error type used to convey parsing errors.
- Position
- Horizontal coordinates in the geographic coordinate system.
- Squawk
- 16 bit transponder squawk code.
Enums§
- ADSB
Message Kind - Kind of ADSB message.
- Message
Kind - Kind of ADS-B/Mode-S message.
- ModeS
Message Kind - Kind of Mode-S message.
- Parity
- Frame parity.
- Vertical
Rate Source - 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.