From 1fa4e820db4e5b2b60156092d67e539f8197da2a Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 29 Sep 2019 19:27:49 +0200 Subject: [PATCH] fix some TIS-B issues --- html/script.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/html/script.js b/html/script.js index c965ab9..987beb5 100644 --- a/html/script.js +++ b/html/script.js @@ -142,9 +142,6 @@ function processReceiverUpdate(data, init) { if (uatNoTISB && !init && uat && ac.type && ac.type.substring(0,4) == "tisb") { // drop non ADS-B planes from UAT (TIS-B) - if (plane) { - plane.last_message_time -= 999; - } continue; } @@ -682,6 +679,10 @@ function parse_history() { if (plane.position && SitePosition) plane.sitedist = ol.sphere.getDistance(SitePosition, plane.position); + if (uatNoTISB && plane.receiver == "uat" && plane.type && plane.type.substring(0,4) == "tisb") { + plane.last_message_time -= 999; + } + if (plane.dataSource == "uat") plane.updateTick(uat_now, uat_last, true); else