1
0
Fork 0

[] skyspy: Compute altitude quality all the time, fix "clock adjust" message

master
Pavel Machek 2024-06-21 09:56:52 +02:00
parent 22d6bdbcc6
commit 6eaad6f13a
1 changed files with 4 additions and 4 deletions

View File

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