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:
parent
5c2ec7106e
commit
8d1df036ae
4 changed files with 25 additions and 3 deletions
4
stats.h
4
stats.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue