Skip to content

gpsprot: derive 3D position accuracy from horizontal and vertical - #521

Merged
jclark merged 2 commits into
masterfrom
derive-3d-accuracy
Oct 25, 2026
Merged

jclark merged 2 commits into
masterfrom
derive-3d-accuracy

Conversation

@jclark

@jclark jclark commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Since satpulsed started configuring geodetic rather than ECEF position
output, receivers such as u-blox report only horizontal and vertical
position accuracy, so the web interface and Prometheus lost the 3D
accuracy they showed before.

Accuracy has a new FillDerived method that sets Pos to
sqrt(Hor^2 + Vert^2) when Pos is unset and both Hor and Vert are set.
The dispatcher calls it on each NavEpoch after the message is written
to the event log, so observers get the derived value while the event
log keeps only what the receiver reported.

Fixes #343

Since satpulsed started configuring geodetic rather than ECEF position
output, receivers such as u-blox report only horizontal and vertical
position accuracy, so the web interface and Prometheus lost the 3D
accuracy they showed before.

Accuracy has a new FillDerived method that sets Pos to
sqrt(Hor^2 + Vert^2) when Pos is unset and both Hor and Vert are set.
The dispatcher calls it on each NavEpoch after the message is written
to the event log, so observers get the derived value while the event
log keeps only what the receiver reported.

Fixes #343
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T14:04:54.958556Z a56da5a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Move the Accuracy.FillDerived call next to the PVMsgBundle.FillDerived
call and shorten its comment. TimeTicker.NavEpoch does not look at the
message, so the order does not matter.
@jclark
jclark merged commit 9166341 into master Oct 25, 2026
10 checks passed
@jclark
jclark deleted the derive-3d-accuracy branch October 25, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing data in Release v0.3-pre-20260619

1 participant