Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Traffic Type (1090ES vs UAT) to remarks #6

Closed
ghost opened this issue May 14, 2021 · 0 comments
Closed

Add Traffic Type (1090ES vs UAT) to remarks #6

ghost opened this issue May 14, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented May 14, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant