Show only reliable tracks in interactive mode
This commit is contained in:
parent
429e34db21
commit
9500a2f2f7
|
|
@ -115,16 +115,12 @@ void interactiveShowData(void) {
|
|||
int row = 2;
|
||||
|
||||
while (a && row < rows) {
|
||||
|
||||
if ((now - a->seen) < Modes.interactive_display_ttl)
|
||||
{
|
||||
int msgs = a->messages;
|
||||
|
||||
if (msgs > 1) {
|
||||
if (a->reliable && (now - a->seen) < Modes.interactive_display_ttl) {
|
||||
char strSquawk[5] = " ";
|
||||
char strFl[7] = " ";
|
||||
char strTt[5] = " ";
|
||||
char strGs[5] = " ";
|
||||
int msgs = a->messages;
|
||||
|
||||
if (trackDataValid(&a->squawk_valid)) {
|
||||
snprintf(strSquawk,5,"%04x", a->squawk);
|
||||
|
|
@ -153,8 +149,12 @@ void interactiveShowData(void) {
|
|||
if (a->adsb_version >= 0) {
|
||||
strMode[1] = '0' + a->adsb_version;
|
||||
}
|
||||
if (a->modeA_hit) {strMode[2] = 'a';}
|
||||
if (a->modeC_hit) {strMode[3] = 'c';}
|
||||
if (a->modeA_hit) {
|
||||
strMode[2] = 'a';
|
||||
}
|
||||
if (a->modeC_hit) {
|
||||
strMode[3] = 'c';
|
||||
}
|
||||
|
||||
if (trackDataValid(&a->position_valid)) {
|
||||
snprintf(strLat, 8,"%7.03f", a->lat);
|
||||
|
|
@ -175,7 +175,6 @@ void interactiveShowData(void) {
|
|||
strLat, strLon, 10 * log10(signalAverage), msgs, (now - a->seen)/1000.0);
|
||||
++row;
|
||||
}
|
||||
}
|
||||
a = a->next;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue