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, /* data from a Mode S message, no full CRC */
|
||||||
SOURCE_MODE_S_CHECKED, /* data from a Mode S message with 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_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 */
|
SOURCE_ADSB, /* data from a ADS-B extended squitter message */
|
||||||
} datasource_t;
|
} 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=0: AA field holds 24-bit ICAO aircraft address
|
||||||
// IMF=1: AA field holds anonymous address or ground vehicle address or fixed obstruction address
|
// IMF=1: AA field holds anonymous address or ground vehicle address or fixed obstruction address
|
||||||
mm->addrtype = ADDR_ADSR_ICAO;
|
mm->addrtype = ADDR_ADSR_ICAO;
|
||||||
|
mm->source = SOURCE_ADSR;
|
||||||
check_imf = 1;
|
check_imf = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
3
net_io.c
3
net_io.c
|
|
@ -2096,6 +2096,9 @@ static inline float heading_difference(float h1, float h2)
|
||||||
case SOURCE_TISB:
|
case SOURCE_TISB:
|
||||||
sourcetype = "T";
|
sourcetype = "T";
|
||||||
break;
|
break;
|
||||||
|
case SOURCE_ADSR:
|
||||||
|
sourcetype = "R";
|
||||||
|
break;
|
||||||
case SOURCE_ADSB:
|
case SOURCE_ADSB:
|
||||||
sourcetype = "A";
|
sourcetype = "A";
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue