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:
parent
6e7c32bde0
commit
39b008472f
2
track.c
2
track.c
|
@ -880,6 +880,7 @@ struct aircraft *trackUpdateFromMessage(struct modesMessage *mm)
|
||||||
}
|
}
|
||||||
a->squawk = mm->squawk;
|
a->squawk = mm->squawk;
|
||||||
|
|
||||||
|
#if 0 // Disabled for now as it obscures the origin of the data
|
||||||
// Handle 7x00 without a corresponding emergency status
|
// Handle 7x00 without a corresponding emergency status
|
||||||
if (!mm->emergency_valid) {
|
if (!mm->emergency_valid) {
|
||||||
emergency_t squawk_emergency;
|
emergency_t squawk_emergency;
|
||||||
|
@ -902,6 +903,7 @@ struct aircraft *trackUpdateFromMessage(struct modesMessage *mm)
|
||||||
a->emergency = squawk_emergency;
|
a->emergency = squawk_emergency;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mm->emergency_valid && accept_data(&a->emergency_valid, mm->source)) {
|
if (mm->emergency_valid && accept_data(&a->emergency_valid, mm->source)) {
|
||||||
|
|
Loading…
Reference in a new issue