From 39b008472fc83feaf13c4a5f284727d341a0e5a0 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Fri, 6 Jul 2018 19:54:58 +0100 Subject: [PATCH] Disable 7x00 -> emergency status translation. This doesn't add information and it can actually obscure the true source of the data (ADS-B emergency vs ADS-B squawk). --- track.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/track.c b/track.c index f16109b..be6689c 100644 --- a/track.c +++ b/track.c @@ -880,6 +880,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; @@ -902,6 +903,7 @@ struct aircraft *trackUpdateFromMessage(struct modesMessage *mm) a->emergency = squawk_emergency; } } +#endif } if (mm->emergency_valid && accept_data(&a->emergency_valid, mm->source)) {