Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
/ readsb Public archive

Commit

Permalink
Disable 7x00 -> emergency status translation.
Browse files Browse the repository at this point in the history
This doesn't add information and it can actually obscure the true
source of the data (ADS-B emergency vs ADS-B squawk).
  • Loading branch information
Mictronics committed Jul 21, 2018
1 parent 807523a commit 7ea6d24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions track.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@ struct aircraft *trackUpdateFromMessage(struct modesMessage *mm) {
}
a->squawk = mm->squawk;

#if 0 // Disabled for now as it obscures the origin of the data
// Handle 7x00 without a corresponding emergency status
if (!mm->emergency_valid) {
emergency_t squawk_emergency;
Expand All @@ -895,6 +896,7 @@ struct aircraft *trackUpdateFromMessage(struct modesMessage *mm) {
a->emergency = squawk_emergency;
}
}
#endif
}

if (mm->emergency_valid && accept_data(&a->emergency_valid, mm->source)) {
Expand Down

0 comments on commit 7ea6d24

Please sign in to comment.