forked from FOSS/BangleApps
[] skyspy: Compute altitude quality all the time, fix "clock adjust" message
parent
22d6bdbcc6
commit
6eaad6f13a
|
@ -119,7 +119,6 @@ function updateGps() {
|
||||||
if (adj_time) {
|
if (adj_time) {
|
||||||
print("Adjusting time");
|
print("Adjusting time");
|
||||||
setTime(fix.time.getTime()/1000);
|
setTime(fix.time.getTime()/1000);
|
||||||
drawMsg("Time\nadjusted");
|
|
||||||
adj_time = 0;
|
adj_time = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,7 +159,6 @@ function updateGps() {
|
||||||
speed + "km/h\n"+ alt + "m+" + adelta + "\nmsghere";
|
speed + "km/h\n"+ alt + "m+" + adelta + "\nmsghere";
|
||||||
}
|
}
|
||||||
if (display == 2) {
|
if (display == 2) {
|
||||||
/* FIXME: ddalt/qalt should be updated in all modes */
|
|
||||||
/* qalt is altitude quality estimate -- over ten seconds,
|
/* qalt is altitude quality estimate -- over ten seconds,
|
||||||
computes differences between GPS and barometric altitude.
|
computes differences between GPS and barometric altitude.
|
||||||
The lower the better.
|
The lower the better.
|
||||||
|
@ -172,12 +170,12 @@ function updateGps() {
|
||||||
"e"+hdop + "m"
|
"e"+hdop + "m"
|
||||||
+"\ndd "+qalt.toFixed(0) + "\n(" + step + "/" + ddalt.toFixed(0) + ")" +
|
+"\ndd "+qalt.toFixed(0) + "\n(" + step + "/" + ddalt.toFixed(0) + ")" +
|
||||||
"\n"+alt + "m+" + adelta;
|
"\n"+alt + "m+" + adelta;
|
||||||
|
}
|
||||||
step++;
|
step++;
|
||||||
if (step == 10) {
|
if (step == 10) {
|
||||||
qalt = max_dalt - min_dalt;
|
qalt = max_dalt - min_dalt;
|
||||||
resetAlt();
|
resetAlt();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (display > 0) {
|
if (display > 0) {
|
||||||
g.reset().setFont("Vector", 31)
|
g.reset().setFont("Vector", 31)
|
||||||
.setColor(1,1,1)
|
.setColor(1,1,1)
|
||||||
|
@ -342,8 +340,10 @@ function touchHandler(d) {
|
||||||
}
|
}
|
||||||
last_b = d.b;
|
last_b = d.b;
|
||||||
|
|
||||||
if ((x<h/2) && (y<w/2))
|
if ((x<h/2) && (y<w/2)) {
|
||||||
|
drawMsg("Clock\nadjust");
|
||||||
adj_time = 1;
|
adj_time = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if ((x>h/2) && (y>w/2))
|
if ((x>h/2) && (y>w/2))
|
||||||
nextScreen();
|
nextScreen();
|
||||||
|
|
Loading…
Reference in New Issue