try to fix addDistances
This commit is contained in:
parent
f45cea959d
commit
5ee814d1a2
@ -6,9 +6,12 @@
|
|||||||
* @authors Timo Volkmann, Frank Herkommer.
|
* @authors Timo Volkmann, Frank Herkommer.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
let allAccSerial = []
|
||||||
|
//list of all coordinates sent in by the Ublox
|
||||||
|
let allSerialCoords = []
|
||||||
//Defines the chart and its properties
|
//Defines the chart and its properties
|
||||||
let ctx = document.getElementById('accChart').getContext('2d');
|
let ctx1 = document.getElementById('accChart').getContext('2d');
|
||||||
let accChart = new Chart(ctx, {
|
let accChart = new Chart(ctx1, {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
data: {
|
data: {
|
||||||
labels: [],
|
labels: [],
|
||||||
@ -146,7 +149,6 @@ function distVincenty(coord1, coord2) {
|
|||||||
let U2 = Math.atan((1-f) * Math.tan(lat2.toRad()));
|
let U2 = Math.atan((1-f) * Math.tan(lat2.toRad()));
|
||||||
let sinU1 = Math.sin(U1), cosU1 = Math.cos(U1);
|
let sinU1 = Math.sin(U1), cosU1 = Math.cos(U1);
|
||||||
let sinU2 = Math.sin(U2), cosU2 = Math.cos(U2);
|
let sinU2 = Math.sin(U2), cosU2 = Math.cos(U2);
|
||||||
|
|
||||||
let lambda = L, lambdaP, iterLimit = 100;
|
let lambda = L, lambdaP, iterLimit = 100;
|
||||||
do {
|
do {
|
||||||
let sinLambda = Math.sin(lambda), cosLambda = Math.cos(lambda);
|
let sinLambda = Math.sin(lambda), cosLambda = Math.cos(lambda);
|
||||||
|
|||||||
@ -6,9 +6,6 @@
|
|||||||
|
|
||||||
let indexes
|
let indexes
|
||||||
//list of all horizontal accuracies sent in by the Ublox
|
//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){
|
function composeTimestamp(servertime){
|
||||||
let composed;
|
let composed;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user