Track the "best" addrtype we ever saw for an aircraft.

This commit is contained in:
Oliver Jowett 2016-09-14 16:54:00 +01:00
parent 2a4aa29f03
commit 8d8443f3dc
3 changed files with 16 additions and 5 deletions

View file

@ -69,6 +69,7 @@ typedef struct {
/* Structure used to describe the state of one tracked aircraft */
struct aircraft {
uint32_t addr; // ICAO address
addrtype_t addrtype; // highest priority address type seen for this aircraft
uint64_t seen; // Time (millis) at which the last packet was received
long messages; // Number of Mode S messages received