Treat ADS-R as a separate source type (higher priority than TIS-B, lower priority than direct ADS-B)
This commit is contained in:
parent
404ac5dced
commit
886b0d3f81
|
|
@ -138,6 +138,7 @@ typedef enum {
|
|||
SOURCE_MODE_S, /* data from a Mode S message, no full CRC */
|
||||
SOURCE_MODE_S_CHECKED, /* data from a Mode S message with full CRC */
|
||||
SOURCE_TISB, /* data from a TIS-B extended squitter message */
|
||||
SOURCE_ADSR, /* data from a ADS-R extended squitter message */
|
||||
SOURCE_ADSB, /* data from a ADS-B extended squitter message */
|
||||
} datasource_t;
|
||||
|
||||
|
|
|
|||
1
mode_s.c
1
mode_s.c
|
|
@ -1400,6 +1400,7 @@ static void decodeExtendedSquitter(struct modesMessage *mm)
|
|||
// IMF=0: AA field holds 24-bit ICAO aircraft address
|
||||
// IMF=1: AA field holds anonymous address or ground vehicle address or fixed obstruction address
|
||||
mm->addrtype = ADDR_ADSR_ICAO;
|
||||
mm->source = SOURCE_ADSR;
|
||||
check_imf = 1;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue