3 unstable releases

0.2.1 Mar 13, 2024
0.2.0 Oct 30, 2021
0.1.0 Aug 2, 2020

#230 in Embedded development

Download history 3/week @ 2024-02-16 5/week @ 2024-02-23 1/week @ 2024-03-01 79/week @ 2024-03-08 26/week @ 2024-03-15 2/week @ 2024-03-22 48/week @ 2024-03-29 17/week @ 2024-04-05

68 downloads per month

MIT/Apache

13KB
266 lines

flight-tracker

Crate Documentation Build Status

Keep track of aircraft using ADSB messages.

Usage

As an application

Connect to a receiver which emits frames in AVR format:

flight-tracker tcp 127.0.0.1 30002

The received ADSB messages will be used to update a table of current aircraft positions:

  icao       call      alt    hdg    gs       vr           lat/lon  squawk  last
--------------------------------------------------------------------------------
39E687    AF1180      1750    269   192     -512  51.4655, -0.2349    0650     0
4CAFD3    FR1885     17800     25   341     -960  51.3663, -0.3822    2276     0

As a library

If you want to integrate the tracker into your application, create a new instance:

let tracker = Tracker::new();

Continuously feed it with ADSB messages from a receiver:

loop {
    ...
    tracker.update_with_avr("*8D4840D6202CC371C32CE0576098;");
    ...
}

Get the list of current aircraft:

let interval = Duration::from_secs(60);
let aicraft_list = tracker.get_current_aircraft(&inverval);

Dependencies

~2.5MB
~52K SLoC