Commit graph

113 commits

Author SHA1 Message Date
antirez 32fe8d8d69 New --metric option to use meters and km/h in --interactive. 2013-01-08 19:46:50 +01:00
antirez f231c7adb2 Remove idle aircrafts in interactive mode. 2013-01-08 19:25:28 +01:00
antirez 3f47bb6f47 Initialize aircraft speed in interactive mode.
The effect of this bug was random speeds displayed with --interactive.
2013-01-08 19:23:51 +01:00
antirez 1576b61af5 Minor aesthetic change to interactive mode. 2013-01-07 01:50:34 +01:00
antirez 840a005d16 Interactive mode with --ifile: play at natural speed. 2013-01-07 01:47:39 +01:00
antirez 69ae2491a5 New AP brute forcing algorithm.
The old approach was to loop over a small circular buffer of recently
seen addresses recomputing the CRC every time: this prevented the use of
a big cache, and 20 entries was too small in case of high traffic and
big range antennas.

@prog on ##rtlsdr suggested to use an alternative algorithm where
instead we compute the CRC of the message, and xor it to obtain the
address, that is later checked in our list of recently seen addresses.
This is a lot better and allows for bigger tables in O(1) lookup time.

I used this idea to implement a larger 1024 elements table. Instead of
writing a proper hash table I used the fact we are just dealing with a
cache, so I just hash the ICAO addess and overwrite the old entry at
that idex with the address-timestamp pair, not caring about collisions.

The bigger table makes a huge difference:
In a test vector of 113 seconds recording with 76 simultaneous aircrafts
the new algorithm detected around 10k more messages (!).
2013-01-07 01:15:29 +01:00
antirez fed415b699 Show 16 bit magnitude value with --debug. 2013-01-07 00:29:35 +01:00
antirez 0a7c5c2e2e Threads locking model fixed (reliable --ifile). 2013-01-06 22:56:32 +01:00
antirez c653e0e95d Added a new --onlyaddr option to just output ICAO addresses. 2013-01-06 17:09:31 +01:00
antirez b3945d1b4f Use 16 bit for the magnitude vector to improve sensitivity.
As @keenerd noted on ##rtlsdr, using an 8 bit magnitude vector is not
enough in order to distinguish every different I/Q pair.

With this commit a few more messages with good CRC are detected.
2013-01-06 16:54:54 +01:00
antirez 417cab5fda Improved message detection and --stats option.
The demodulation algorithm now only skips the current message if the
CRC is valid, this improves the amount of messages detected with good
CRC by ~ 4% since sometimes we are just a few samples out of sync.

This also improves the amount of messages that can be fixed.

The --stats option was added in order to better evaluate how the
algorithm performs on the same input after some change. So if you run
the program with both --ifile and --stats no Mode S message is logged
at all, but at the end of the processing the program shows you the
amount of messages decoded with good, bad crc, bit corrections, valid
preambles and so forth.
2013-01-06 15:13:40 +01:00
antirez f01324cea4 Interactive mode: new switch --interactive-rows for max # of rows. 2013-01-05 21:41:09 +01:00
antirez d974a4db90 Everything renamed dump1090 (was mode1090). 2013-01-05 20:00:46 +01:00
Renamed from mode1090.c (Browse further)