Add Traffic Type (1090ES vs UAT) to remarks
Closed this issue · 0 comments
https://github.com/cyoung/stratux/blob/ec997fbf98a27ef53002dc4207ae7d22bbb409a6/main/traffic.go#L84
TargetType ==>
if
TARGET_TYPE_MODE_S = 0 ====> Throw out/ignore...can't plot this in a CoT message and usually has Position_valid":false,
TARGET_TYPE_ADSB = 1 _====> Add "ADS-B Type" to CoT Remarks Type: {ADS-B}
TARGET_TYPE_ADSR = 2 _====> Add "ADS-B Type" to CoT Remarks Type: {ADS-R}
TARGET_TYPE_TISB_S = 3 _====> Add "ADS-B Type" to CoT Remarks Type: {TIS-B}
TARGET_TYPE_TISB = 4 _====> Add "ADS-B Type" to CoT Remarks Type: {TIS-B}
=============================
If TargetType
is 3 or 4, then hard code cot type="a-u-A"
for unknown type of air track...no further info available to catagorize. The emitter code should be
===========================
https://github.com/cyoung/stratux/blob/fb1ef310f5bc4b48e8c8fd6de4ac8d7f5e6d65c2/main/traffic.go#L539
if ti.Addr_type == 0 {
ti.TargetType = TARGET_TYPE_ADSB
} else if ti.Addr_type == 3 {
ti.TargetType = TARGET_TYPE_TISB
} else if ti.Addr_type == 6 {
ti.TargetType = TARGET_TYPE_ADSR
} else if ti.Addr_type == 2 {
ti.TargetType = TARGET_TYPE_TISB_S
if (ti.NIC >= 7) && (ti.Emitter_category > 0) { // If NIC is sufficiently high and emitter type is transmitted, we'll assume it's ADS-R.
ti.TargetType = TARGET_TYPE_ADSR
==============================
https://github.com/cyoung/stratux/blob/fb1ef310f5bc4b48e8c8fd6de4ac8d7f5e6d65c2/main/traffic.go#L1111
ti.Addr_type = uint8(icao % 4) // 0 == ADS-B; 1 == reserved; 2 == TIS-B with ICAO address; 3 == TIS-B without ICAO address; 6 == ADS-R
if ti.Addr_type == 1 { // reassign "reserved value" to ADS-R