Don't use DF0/4/16/20 altitudes when DF17/18 altitudes are available.

The DF17/18 values are generally more trustworthy as they have full
CRC coverage. Errors in the CRC bits of a DF0/4/16/20 message can
result in the contained altitude being attributed to the wrong aircraft.
This commit is contained in:
Oliver Jowett 2015-06-26 20:43:46 +01:00
parent 5c2ec7106e
commit 8d1df036ae
4 changed files with 25 additions and 3 deletions

View file

@ -114,6 +114,10 @@ struct stats {
unsigned int cpr_local_receiver_relative;
unsigned int cpr_filtered;
// number of altitude messages ignored because
// we had a recent DF17/18 altitude
unsigned int suppressed_altitude_messages;
// aircraft:
// total "new" aircraft (i.e. not seen in the last 30 or 300s)
unsigned int unique_aircraft;