mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +00:00
Phase 2. A 5-fix GPS ring sampled every ~1 s in UITask::loop, filled whenever there's a valid fix — independent of trail recording, so the heading is available to navigation at all times, not only while logging a trail. - pushCogFix() rejects gross outliers (a fix implying > 50 m/s since the previous one) so a single bad GPS reading can't swing the heading. - currentCourse(deg) returns the bearing across the window (oldest→newest) once the window spans ≥ 6 m of real movement; below that it holds the last good heading, and returns false only until the first valid heading exists. This is the "two absolute bearings (To / Hdg)" heading source for the upcoming nav view. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>