Skip to content

Commit

Permalink
Added Mode-S Identity Reply decoding
Browse files Browse the repository at this point in the history
Identity replies are decoded, so that aircraft registration is displayed even without Extended Squitter
  • Loading branch information
TomBric committed Jul 3, 2020
1 parent 6b53506 commit 2273c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/traffic.go
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ func esListen() {
ti.OnGround = bool(*newTi.OnGround)
}

if (newTi.Tail != nil) && ((newTi.DF == 17) || (newTi.DF == 18)) { // DF=17 or DF=18, Type Code 1-4
if (newTi.Tail != nil) && ((newTi.DF == 17) || (newTi.DF == 18) || (newTi.DF == 21)) { // DF=17 or DF=18, Type Code 1-4 , DF=21 Identity Reply
ti.Tail = *newTi.Tail
ti.Tail = strings.Trim(ti.Tail, " ") // remove extraneous spaces
}
Expand Down

0 comments on commit 2273c18

Please sign in to comment.