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).
This commit is contained in:
Oliver Jowett 2018-07-06 19:54:58 +01:00
parent 6e7c32bde0
commit 39b008472f

View file

@ -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)) {