Skip to content
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

drivers: gnss: Add geoid separation to gnss_info #84547

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

maxmclau
Copy link
Contributor

@maxmclau maxmclau commented Jan 25, 2025

Currently altitude is only provided above MSL. Adding geoid separation allows for ellipsoidal height to be determined. This is important for many applications.

Curious whether others think this should live in navigation_data or gnss_info

@bjarki-andreasen
Copy link
Collaborator

Do you foresee an application using both references? I would expect the altitude reference to be selected using a kconfig, so its ether MSL, or relative to ellipsoid, or some other

@maxmclau
Copy link
Contributor Author

Do you foresee an application using both references? I would expect the altitude reference to be selected using a kconfig, so its ether MSL, or relative to ellipsoid, or some other

We're working on an aviation application where both are needed. We use geoid separation to convert between ellipsoidal heights (measured from the ellipsoid) and orthometric heights (measured from the geoid). It's used along with a DEM for distance-to-ground approximation and terrain avoidance. We still report MSL altitude though, so we need both available.

I don't love it living in navigation_data, doesn't feel important enough. Maybe gnss_info?

@bjarki-andreasen
Copy link
Collaborator

Do you foresee an application using both references? I would expect the altitude reference to be selected using a kconfig, so its ether MSL, or relative to ellipsoid, or some other

We're working on an aviation application where both are needed. We use geoid separation to convert between ellipsoidal heights (measured from the ellipsoid) and orthometric heights (measured from the geoid). It's used along with a DEM for distance-to-ground approximation and terrain avoidance. We still report MSL altitude though, so we need both available.

I don't love it living in navigation_data, doesn't feel important enough. Maybe gnss_info?

All for putting it in gnss_info :)

@maxmclau
Copy link
Contributor Author

Do you foresee an application using both references? I would expect the altitude reference to be selected using a kconfig, so its ether MSL, or relative to ellipsoid, or some other

We're working on an aviation application where both are needed. We use geoid separation to convert between ellipsoidal heights (measured from the ellipsoid) and orthometric heights (measured from the geoid). It's used along with a DEM for distance-to-ground approximation and terrain avoidance. We still report MSL altitude though, so we need both available.
I don't love it living in navigation_data, doesn't feel important enough. Maybe gnss_info?

All for putting it in gnss_info :)

Agreed - just moved it to gnss_info

Copy link
Collaborator

@tomi-font tomi-font left a comment

Choose a reason for hiding this comment

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

Looks good, other than you forgot to update the commit message (and optionally, the PR title). 🙂

Currently altitude is only provided above MSL. Adding
geoid seperation allows for ellipsoidal height to be
determined.

Signed-off-by: Maxmillion McLaughlin <[email protected]>
@maxmclau maxmclau changed the title drivers: gnss: Add geoid separation to navigation_data drivers: gnss: Add geoid separation to gnss_info Jan 29, 2025
@maxmclau
Copy link
Contributor Author

Do you foresee an application using both references? I would expect the altitude reference to be selected using a kconfig, so its ether MSL, or relative to ellipsoid, or some other

We're working on an aviation application where both are needed. We use geoid separation to convert between ellipsoidal heights (measured from the ellipsoid) and orthometric heights (measured from the geoid). It's used along with a DEM for distance-to-ground approximation and terrain avoidance. We still report MSL altitude though, so we need both available.
I don't love it living in navigation_data, doesn't feel important enough. Maybe gnss_info?

All for putting it in gnss_info :)

whoops 😅 - fixed

@kartben kartben merged commit b50bb7c into zephyrproject-rtos:main Jan 29, 2025
25 checks passed
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.

5 participants