Skip to content

Commit f5d88c8

Browse files
committed
skyspy: fix qalt initialization, faster circle drawing
1 parent 0638ebc commit f5d88c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/skyspy/skyspy.app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Sky spy */
22

3+
/* FIXME: need to switch to latest fmt library */
34
let fmt = {
45
icon_alt : "\0\x08\x1a\1\x00\x00\x00\x20\x30\x78\x7C\xFE\xFF\x00\xC3\xE7\xFF\xDB\xC3\xC3\xC3\xC3\x00\x00\x00\x00\x00\x00\x00\x00",
56
icon_m : "\0\x08\x1a\1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xC3\xE7\xFF\xDB\xC3\xC3\xC3\xC3\x00\x00\x00\x00\x00\x00\x00\x00",
@@ -290,6 +291,8 @@ let gps_quality = {
290291
}
291292
};
292293

294+
var qalt = 9999; /* global, altitude quality */
295+
293296
let gps_display = {
294297
updateGps: function() {
295298
let lat = "lat ", alt = "?", speed = "speed ", hdop = "?",
@@ -403,6 +406,9 @@ let sky = {
403406

404407
radCircle: function(d) {
405408
/* FIXME: .. should do real circle */
409+
g.drawCircle(radX(0, 0), radY(0, 0), radD(d));
410+
if (1)
411+
return;
406412
let step = 0.05;
407413
for (let i = 0; i < 1; i += 0.05) {
408414
this.radLine(i - step, d, i, d);

0 commit comments

Comments
 (0)