-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
base: master
Are you sure you want to change the base?
Conversation
4cd9440
to
5aa832f
Compare
There was a problem hiding this 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?
5aa832f
to
1f2fc72
Compare
1f2fc72
to
be80834
Compare
This definitely looks like it would fix the problem mentioned in the issue. Please outline what testing this has had. I've marked this as DevCall for potential merge, just need to know how it's been tested. Have you tested this on non-mavlink GPSs, for example? |
I have tested this change only with mavlink GPS.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the use case?
accepting this message could result in the EKF consuming an invalid altitude. We can't have 3D fix and no altitude
Hi @tomashmyh, Could you clarify the use-case for this? There are a lot of places in the AP code where we check that the GPS provides 3D fix (which implies the altitude is available as well). No precisely we're wondering if perhaps you're trying to provide a location from an external system (like a vision based system) in which case we have better ways to provide the location/position rather than using the GPS_INPUT message. VISION_POSITION_ESTIMATE and VISION_SPEED_ESTIMATE or ODOMETRY messages might be better. |
Hi @rmackay9 |
but if mavlink GPS source is not the main one so EKF is not consuming its data. So in this case vehicle can not be armed and used. Also there is a possibility that user send fix_type=2(2D fix) and with GPS_INPUT_IGNORE_FLAG_ALT |
#26749