-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix height above ellipsoid and undulation for SBF GPS #23942
Conversation
Hi @makeller1, Thanks for the PR. Can you change the commit title to start with "AP_GPS:"? Please note that I mean the commit title, not the PR title. I've added this to the next dev call. |
861cba5
to
179e681
Compare
Done. |
Thanks for the PR. I made the initial commit, but during the development, a lot of changes were made prior to merging to the master code by multiple developers. I did some research on this and I agree that it looks that the ellipsoid height and undulation are calculated incorrectly. However it boils down how ArduPilot defined undulation. Having said that the current implementation is in any case in conflict with the definition in the AP_GPS code. So a lot of words to say that I don't have the expertise for this bug/PR, but to me it looks that it is a bug that is fixed with this PR. |
We discussed this on the dev call (06-Jun-2023) and decided that we needed to see the data from the GPS to be sure this is correct. @tridge apparently has a HiTec septentrio based GPS that he will test with. |
I have a septentrio mosaic here and will test |
Great news. I've added this to the Copter-4.4 project. It was added to Plane-4.4 but not Copter-4.4 for some reason.. we should always add to both if we add it to either. |
Merged, thanks! |
this is included in Copter-4.4.0-beta3 |
As pointed out in issue #23613, the ellipsoid height and undulation are calculated incorrectly. This likely occurred because Ardupilot has an opposite definition of undulation as the Septentrio receiver (and virtually all GPS receivers for that matter). Septentrio defines undulation as the distance from the ellipsoid to the geoid with up being positive (geoid is above ellipsoid). Ardupilot defines down as positive.
This PR reconciles the undulation definition and fixes the height above ellipsoid computed here.
@tridge, @hendjoshsr71 and/or @BluemarkInnovations
Platform
[X] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine