diff --git a/static/scripts/accChart.js b/static/scripts/accChart.js index 2e4557d..cf6f6a3 100644 --- a/static/scripts/accChart.js +++ b/static/scripts/accChart.js @@ -1,6 +1,5 @@ let allAccSerial = [] let allSerialCoords = [] -let allTcpCoords = [] var ctx = document.getElementById('accChart').getContext('2d'); var accChart = new Chart(ctx, { @@ -79,9 +78,6 @@ function addDistances(tcpDataList, serialDataList){ distances.push(distance) } - console.log("tcp coords: " + tcpCoords) - console.log("distances: " + distances) - accChart.data.labels = tcpTimes accChart.data.datasets[0].data = serialHAccs accChart.data.datasets[1].data = distances diff --git a/static/scripts/refull.js b/static/scripts/refull.js index 0d32a2f..a0c5524 100644 --- a/static/scripts/refull.js +++ b/static/scripts/refull.js @@ -7,13 +7,6 @@ function composeTimestamp(servertime){ return composed; } -function calculateDistSerialTCP(coordsSerial, coordsTCP) { - let long = Math.abs(coordsSerial[0] - coordsTCP[0]) - let lat = Math.abs(coordsSerial[1] - coordsTCP[1]) - let squareDist = Math.pow(long, 2) + Math.pow(lat, 2) - return (Math.sqrt(squareDist)) -} - function findBestTimeMatch(num, arr) { var mid; var lo = 0; @@ -55,7 +48,6 @@ function findSerialDataIndex(tcpdataList, serialdataList) { indexes.push(index) } }) - console.log("indexes: " + indexes) } window.addEventListener("load", function(evt) { diff --git a/static/scripts/chartfull.js b/static/scripts/speedChart.js similarity index 100% rename from static/scripts/chartfull.js rename to static/scripts/speedChart.js diff --git a/static/scripts/websocket.js b/static/scripts/websocket.js index cd32146..8105435 100644 --- a/static/scripts/websocket.js +++ b/static/scripts/websocket.js @@ -66,26 +66,6 @@ window.addEventListener("load", function(evt) { console.log("no serial data") } - try{ - if(!(dat.SOURCE_TCP.Position[1] === 0) && !(dat.SOURCE_SERIAL.Position[1] === 0)){ - document.getElementById("diffLong").innerHTML = "Differenz long: " + Math.abs(dat.SOURCE_TCP.Position[1] - dat.SOURCE_SERIAL.Position[1]) - } - if(!(dat.SOURCE_TCP.Position[0] === 0) && !(dat.SOURCE_SERIAL.Position[0] === 0)){ - document.getElementById("diffLat").innerHTML = "Differenz lat: " + Math.abs(dat.SOURCE_TCP.Position[0] - dat.SOURCE_SERIAL.Position[0]) - } - } - catch{ - console.log("no data to compare") - } - - try{ - if(!(dat.SOURCE_SERIAL.Position[2] === 0)){ - addSerialAltData(dat.SOURCE_SERIAL.Position[2]) - } - } - catch{ - console.log("no altitude data") - } try{ if(!(dat.SOURCE_SERIAL.HAcc === 0) && !(dat.SOURCE_SERIAL.VAcc === 0)){ addSerialAccuracy(dat.SOURCE_SERIAL.HAcc, dat.SOURCE_SERIAL.VAcc) diff --git a/templates/index.html b/templates/index.html index c9208c5..29093bb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -38,8 +38,6 @@ - -