From f1f76cb8e31316c512b8b8be6a172ee1102113d7 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Mon, 29 Jun 2015 12:44:19 +0100 Subject: [PATCH] When receiving mlat, allow larger gaps between positions before plotting estimated tracks. mlat positions aren't generally so frequent as proper ES, so they'd almost always plot as estimated. --- public_html/planeObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/planeObject.js b/public_html/planeObject.js index eec7971..df5b296 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -326,7 +326,7 @@ PlaneObject.prototype.updateTick = function(receiver_timestamp, last_timestamp) } else { this.visible = true; if (this.position !== null) { - if (this.updateTrack(receiver_timestamp - last_timestamp + 5)) { + if (this.updateTrack(receiver_timestamp - last_timestamp + (this.position_from_mlat ? 30 : 5))) { this.updateLines(); this.updateMarker(true); } else {