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

Start using altitude getter - towards private alt in Location #28481

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Ryanf55
Copy link
Collaborator

@Ryanf55 Ryanf55 commented Oct 28, 2024

Purpose

We want to move towards having the altitude in AP_Location private and force using frames when getting/setting it to make it easier to spot frame bugs. This PR gets us 1/3 of the way to making the altitude field private. Once that's private, we can start to use grep to migrate off get_alt_cm() where we are worried about using the wrong frame.

Also, this could get us closer towards geoid-datum aware altitudes in AP.

Context

#28406 (comment)

Issue

Relates to #28435

Testing

None, hopefully this is narrowly scoped we can merge via inspection and manual testing in any areas of higher concern.

* This is used when the get_alt_cm(frame, alt) fails

Signed-off-by: Ryan Friedman <[email protected]>
Signed-off-by: Ryan Friedman <[email protected]>
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.

1 participant