ads
adsb
cargo install adsb
ads

adsb

A Rust parser for ADS-B/Mode-S messages.

by António Marques

0.2.3 (see all)License:MIT/Apache-2.0
cargo install adsb
Readme

adsb

Build Status

A Rust parser for ADS-B/Mode-S messages.

Messages with the following Downlink Formats (DF) are supported:

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

Usage

Parse message in AVR format

let avr = "*8D4840D6202CC371C32CE0576098;";
let (message, _) = parse_avr(&avr).unwrap();
if let Message {
    kind:
        MessageKind::ADSBMessage {
            kind: ADSBMessageKind::AircraftIdentification { callsign, .. },
            ..
        },
    ..
} = message
{
    println!("callsign: {}", callsign);
}

Parse message in binary format

let bin = b"\x8D\x40\x62\x1D\x58\xC3\x82\xD6\x90\xC8\xAC\x28\x63\xA7";
let (message, _) = parse_binary(bin).unwrap();
if let Message {
    kind:
        MessageKind::ADSBMessage {
            kind: ADSBMessageKind::AirbornePosition { altitude, .. },
            ..
        },
    ..
} = message
{
    println!("altitude: {}", altitude);
}

GitHub Stars

10

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.2.3
2yrs ago
0.2.2
2yrs ago
0.2.1
2yrs ago
0.2.0
3yrs ago
No alternatives found
No tutorials found
Add a tutorial