waypoints: disable compass for now

master
Pavel Machek 2024-12-08 17:33:20 +01:00
parent 65282924db
commit 96cfe5f847
1 changed files with 8 additions and 6 deletions

View File

@ -207,12 +207,14 @@ let arrow = {
let distance = fmt.distance(currentPos, this.waypoint); let distance = fmt.distance(currentPos, this.waypoint);
this.north = 0; this.north = 0;
let compass = Bangle.getCompass(); if (0) {
if (compass) { let compass = Bangle.getCompass();
let c = compass.heading; if (compass) {
this.north = c; let c = compass.heading;
print("Compass:", c); this.north = c;
this.drawArrow(c, "Up", 1); print("Compass:", c);
this.drawArrow(c, "Up", 1);
}
} }
if (fix.speed && fix.speed > 3) if (fix.speed && fix.speed > 3)