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,6 +207,7 @@ let arrow = {
let distance = fmt.distance(currentPos, this.waypoint); let distance = fmt.distance(currentPos, this.waypoint);
this.north = 0; this.north = 0;
if (0) {
let compass = Bangle.getCompass(); let compass = Bangle.getCompass();
if (compass) { if (compass) {
let c = compass.heading; let c = compass.heading;
@ -214,6 +215,7 @@ let arrow = {
print("Compass:", c); print("Compass:", c);
this.drawArrow(c, "Up", 1); this.drawArrow(c, "Up", 1);
} }
}
if (fix.speed && fix.speed > 3) if (fix.speed && fix.speed > 3)
this.north = fix.course; this.north = fix.course;