From 5ee814d1a2cfd7d348120ab286d5096f00abba30 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 14 Jan 2021 14:19:58 +0100 Subject: [PATCH] try to fix addDistances --- static/scripts/accChart.js | 8 +++++--- static/scripts/refull.js | 3 --- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/static/scripts/accChart.js b/static/scripts/accChart.js index e31f5ad..073d06f 100644 --- a/static/scripts/accChart.js +++ b/static/scripts/accChart.js @@ -6,9 +6,12 @@ * @authors Timo Volkmann, Frank Herkommer. */ +let allAccSerial = [] +//list of all coordinates sent in by the Ublox +let allSerialCoords = [] //Defines the chart and its properties -let ctx = document.getElementById('accChart').getContext('2d'); -let accChart = new Chart(ctx, { +let ctx1 = document.getElementById('accChart').getContext('2d'); +let accChart = new Chart(ctx1, { type: 'line', data: { labels: [], @@ -146,7 +149,6 @@ function distVincenty(coord1, coord2) { let U2 = Math.atan((1-f) * Math.tan(lat2.toRad())); let sinU1 = Math.sin(U1), cosU1 = Math.cos(U1); let sinU2 = Math.sin(U2), cosU2 = Math.cos(U2); - let lambda = L, lambdaP, iterLimit = 100; do { let sinLambda = Math.sin(lambda), cosLambda = Math.cos(lambda); diff --git a/static/scripts/refull.js b/static/scripts/refull.js index 61c7e2f..1f71313 100644 --- a/static/scripts/refull.js +++ b/static/scripts/refull.js @@ -6,9 +6,6 @@ let indexes //list of all horizontal accuracies sent in by the Ublox -let allAccSerial = [] -//list of all coordinates sent in by the Ublox -let allSerialCoords = [] function composeTimestamp(servertime){ let composed;