From 22d6bdbcc6e46e9647064b736d2c0ad6afc356e5 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Fri, 21 Jun 2024 00:18:55 +0200 Subject: [PATCH] [] skyspy: better debug output, add documentation --- apps/skyspy/skyspy.app.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/skyspy/skyspy.app.js b/apps/skyspy/skyspy.app.js index c9e22d580..2b0965148 100644 --- a/apps/skyspy/skyspy.app.js +++ b/apps/skyspy/skyspy.app.js @@ -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) {