Make the recorder handle missing coordinates in plot speed
parent
69c6a34ead
commit
a622781628
|
|
@ -360,6 +360,10 @@ function plotGraph(info, style) {
|
||||||
var t,dx,dy,d,lt = c[timeIdx];
|
var t,dx,dy,d,lt = c[timeIdx];
|
||||||
while(l!==undefined) {
|
while(l!==undefined) {
|
||||||
++nl;c=l.split(",");
|
++nl;c=l.split(",");
|
||||||
|
l = f.readLine(f);
|
||||||
|
if (c[latIdx] == "") {
|
||||||
|
continue;
|
||||||
|
};
|
||||||
t = c[timeIdx];
|
t = c[timeIdx];
|
||||||
i = Math.round(80*(t - strt)/dur);
|
i = Math.round(80*(t - strt)/dur);
|
||||||
p = Bangle.project({lat:c[latIdx],lon:c[lonIdx]});
|
p = Bangle.project({lat:c[latIdx],lon:c[lonIdx]});
|
||||||
|
|
@ -372,7 +376,6 @@ function plotGraph(info, style) {
|
||||||
}
|
}
|
||||||
lp = p;
|
lp = p;
|
||||||
lt = t;
|
lt = t;
|
||||||
l = f.readLine(f);
|
|
||||||
}
|
}
|
||||||
} else throw new Error("Unknown type "+style);
|
} else throw new Error("Unknown type "+style);
|
||||||
var min=100000,max=-100000;
|
var min=100000,max=-100000;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue