feat(nav): standalone Compass in Tools

Tools › Compass shows the device's course over ground (from the GPS COG
ring — no magnetometer) as a rotating arrow in a ring with a north tick,
plus a large degrees + cardinal readout. "No GPS fix" without a fix;
"move to set heading" when stationary (course undefined). Reuses
UITask::currentCourse, so it works without recording a trail.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-06-03 14:07:53 +02:00
co-authored by Claude Opus 4.8
parent ed984e437b
commit 8bf050ddb4
4 changed files with 118 additions and 2 deletions
+2
View File
@@ -76,6 +76,7 @@ class UITask : public AbstractUITask {
UIScreen* dashboard_config;
UIScreen* auto_advert_screen;
UIScreen* trail_screen;
UIScreen* compass_screen;
UIScreen* curr;
CayenneLPP _dash_lpp;
TrailStore _trail;
@@ -144,6 +145,7 @@ public:
void gotoDashboardConfig();
void gotoAutoAdvertScreen();
void gotoTrailScreen();
void gotoCompassScreen();
TrailStore& trail() { return _trail; }
WaypointStore& waypoints() { return _waypoints; }
void saveWaypoints(); // persist the table to /waypoints