Update gps-info.js
parent
97fb4d77dc
commit
feef089aba
|
|
@ -17,7 +17,7 @@ var lastFix = {
|
||||||
satellites: 0
|
satellites: 0
|
||||||
};
|
};
|
||||||
var SATinView = 0, lastSATinView = -1, nofGP = 0, nofBD = 0, nofGL = 0;
|
var SATinView = 0, lastSATinView = -1, nofGP = 0, nofBD = 0, nofGL = 0;
|
||||||
const leaveNofixLayout = 0; // 0 = stay on initial screen for debugging (default = 1)
|
const leaveNofixLayout = 1; // 0 = stay on initial screen for debugging (default = 1)
|
||||||
var listenerGPSraw = 0;
|
var listenerGPSraw = 0;
|
||||||
|
|
||||||
function formatTime(now) {
|
function formatTime(now) {
|
||||||
|
|
@ -96,6 +96,7 @@ function onGPS(fix) {
|
||||||
Bangle.removeListener('GPS-raw', onGPSraw);
|
Bangle.removeListener('GPS-raw', onGPSraw);
|
||||||
listenerGPSraw = 0;
|
listenerGPSraw = 0;
|
||||||
lastSATinView = -1;
|
lastSATinView = -1;
|
||||||
|
Bangle.buzz(50);
|
||||||
}
|
}
|
||||||
var locale = require("locale");
|
var locale = require("locale");
|
||||||
var satellites = fix.satellites;
|
var satellites = fix.satellites;
|
||||||
|
|
@ -119,7 +120,7 @@ function onGPS(fix) {
|
||||||
lastSATinView = SATinView;
|
lastSATinView = SATinView;
|
||||||
layout.clear(layout.progress);
|
layout.clear(layout.progress);
|
||||||
layout.progress.label = "in view GP/BD/GL: " + nofGP + " " + nofBD + " " + nofGL;
|
layout.progress.label = "in view GP/BD/GL: " + nofGP + " " + nofBD + " " + nofGL;
|
||||||
console.log("in view GP/BD/GL: " + nofGP + " " + nofBD + " " + nofGL);
|
// console.log("in view GP/BD/GL: " + nofGP + " " + nofBD + " " + nofGL);
|
||||||
layout.render(layout.progress);
|
layout.render(layout.progress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue