Skip to content

AP_GPS: fix SBF BaseVectorGeod double DNU sentinel value#32633

Closed
omarzayedbeshir wants to merge 1 commit into
ArduPilot:masterfrom
omarzayedbeshir:gps-sbf-sol
Closed

AP_GPS: fix SBF BaseVectorGeod double DNU sentinel value#32633
omarzayedbeshir wants to merge 1 commit into
ArduPilot:masterfrom
omarzayedbeshir:gps-sbf-sol

Conversation

@omarzayedbeshir
Copy link
Copy Markdown
Contributor

In the SBF (Septentrio Binary Format) protocol, the Do Not Use (DNU) sentinel value for double-precision fields is -2e+10 (i.e., -2e10), not -2e-10. I, therefore, adjusted the value to be -2e+10.

@khancyr
Copy link
Copy Markdown
Contributor

khancyr commented Mar 31, 2026

hold until the original poster agree to make the fix


// just breakout any consts we need for Do Not Use (DNU) reasons
constexpr double doubleDNU = -2e-10;
constexpr double doubleDNU = -2e+10;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be using is_DNU - and we need #31997

@rmackay9
Copy link
Copy Markdown
Contributor

rmackay9 commented Apr 2, 2026

The alternative PR is here #32642

@rmackay9
Copy link
Copy Markdown
Contributor

I think this has been resolved by #32642 so closing. thanks very much for the contribution in any case!

@rmackay9 rmackay9 closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants