Skip to content

Commit

Permalink
[] waypointe editor: attempt to fix marking.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelmachek committed Jun 3, 2024
1 parent b582ed8 commit 6fc4dbd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/waypoints/waypoints.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function mainMenu() {
}

function updateGps() {
let lat = "lat", lon = "lon", alt = "alt", speed = "speed";
let pos = "lat/lon", alt = "alt", speed = "speed";

if (cancel_gps)
return;
Expand All @@ -56,8 +56,7 @@ function updateGps() {
speed = "no fix for " + (getTime() - gps_start).toFixed(0) + "s";

if (fix && fix.fix && fix.lat) {
lat = "" + lat(fix.lat);
lon = "" + lon(fix.lon);
pos = "" + lat(fix.lat) + " " + lon(fix.lon);
alt = "alt " + fix.alt.toFixed(0) + "m";
speed = "speed " + fix.speed.toFixed(1) + "kt";
}
Expand All @@ -67,8 +66,7 @@ function updateGps() {
.fillRect(0, 0, 176, 120)
.setColor(0,0,0)
.drawString(key, 0, 0)
.drawString(lat, 0, 20)
.drawString(lon, 0, 40)
.drawString(pos, 0, 20)
.drawString(alt, 0, 60)
.drawString(speed, 0, 80);

Expand Down

0 comments on commit 6fc4dbd

Please sign in to comment.