1
0
Fork 0

[] skyspy: better debug output, add documentation

master
Pavel Machek 2024-06-21 00:18:55 +02:00
parent 2e60c8b5ec
commit 22d6bdbcc6
1 changed files with 10 additions and 2 deletions

View File

@ -160,9 +160,17 @@ 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.
ddalt is just a debugging -- same estimate, but without
waiting 10 seconds, so will be always optimistic at start
of the cycle */
msg = speed + "km/h\n" +
"e"+hdop + "m/"+step
+"\ndd "+qalt.toFixed(0) + "\n(" + ddalt.toFixed(0) + ")" +
"e"+hdop + "m"
+"\ndd "+qalt.toFixed(0) + "\n(" + step + "/" + ddalt.toFixed(0) + ")" +
"\n"+alt + "m+" + adelta;
step++;
if (step == 10) {