Skip to content

rtkpos: relax test for initial position#679

Merged
rtklibexplorer merged 1 commit intortklibexplorer:demo5from
ourairquality:rtkpos-init-pos-test
Jul 6, 2025
Merged

rtkpos: relax test for initial position#679
rtklibexplorer merged 1 commit intortklibexplorer:demo5from
ourairquality:rtkpos-init-pos-test

Conversation

@ourairquality
Copy link
Copy Markdown

If the norm of the xyz vector is less than half the earth radius then assume it is an initial position, rather than having to be exactly zero.

On the windows rtknavi, was seeing an error that there were not enough double differentials when mistakenly failing to supply a base station position, but this should have been detected and better reported. These test of the initial position was failing because the norm was not exactly zero. This PR relaxes the test so a position with a norm less than half the earth radius is considered an initial position and reported as an uninitialised base station position.

If the norm of the xyz vector is less than half the earth radius then
assume it is an initial position, rather than having to be exactly
zero.
@rtklibexplorer rtklibexplorer merged commit 41dda2e into rtklibexplorer:demo5 Jul 6, 2025
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.

2 participants