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

AP_GPS: Ignore Z-axis difference while dual GPS difference check #28236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomashmyh
Copy link

@tomashmyh tomashmyh commented Sep 26, 2024

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

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

@rmackay9 why is this marked "safety"? AFAICS this can only make it easier to arm, meaning it makes things less safe?

@@ -71,6 +71,8 @@ void AP_GPS_MAV::handle_msg(const mavlink_message_t &msg)
loc.lng = packet.lon;
if (have_alt) {
loc.alt = packet.alt * 100; // convert to centimeters
} else {
state.have_altitude = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

This could change over time, so we might need to set just state.have_altitude = have_alt;?

There might be a reason we shouldn't do that, in which case a comment would be good :-)

Copy link
Author

Choose a reason for hiding this comment

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

you are right, there is no need to set it here only to false.
changed that

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