GNSS bring-up diagnostics and mag-primary heading - #71
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…PVTGeodetic revisions Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The bring-up relied on the receiver's default resolution (Fixed); a short baseline may never fix its ambiguities, so emit Float explicitly to keep heading available. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
With the dual-antenna GNSS aux port dead, the mag is the only heading reference, but heading was reported valid only after a GNSS fix that can never arrive: output() returned FLT_MAX variance until _initialized, so the rudder saw heading as permanently untrustworthy. Report the real variance once heading is anchored by GNSS or a mag offset seed. Guard against steering on an unconverged mag: surface the BNO Rotation Vector calibration accuracy (0-3) through ImuSample and FusionOutput, and require at least medium accuracy in heading_trustworthy (the rudder gate). Persist the calibration once it converges (auto Save-DCD) so later boots start calibrated. Tighten p0_offset_deg2 and set the calibrated offset_seed_deg so the trusted mag holds heading under the rudder's bound. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The dual-antenna GNSS aux (ANT_2) RF input on the mosaic-go-H is confirmed dead (fault follows the port across an antenna swap; clear-sky main tracks 27 sats, aux 0-1), so the unit is being RMA'd. Until a replacement, heading comes solely from the BNO085 magnetometer.
GNSS
Mag-primary heading
Tests
217 host tests pass, including new regression coverage: mag-primary steerable heading, the accuracy gate, BNO accuracy parse, Save-DCD layout.
Provisional on hardware: verify heading reads correct and valid at magnetic north and is repeatable across a reboot.