From 3e4f25eaf04c3eb8bf8a38c42622e8ab15bdbdc2 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Mon, 1 Jun 2020 18:37:47 +0200 Subject: [PATCH] accomodate new heatmap format --- html/script.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/html/script.js b/html/script.js index ad3bec4..156d654 100644 --- a/html/script.js +++ b/html/script.js @@ -4668,12 +4668,20 @@ function drawHeatmap() { if (!inView(pos, ext)) continue; - let alt = points[i + 3]; + let alt = points[i + 3] & 65535; + if (alt & 32768) + alt |= -65536; if (alt == -123) alt = 'ground'; else alt *= 25; + let gs = points[i + 3] >> 16; + if (gs == -1) + gs = null; + else + gs /= 10; + if (PlaneFilter.enabled && altFiltered(alt)) continue;