-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
EKF2: EV vel/pos only use EV q if enabled and valid #23512
base: main
Are you sure you want to change the base?
Conversation
98565dc
to
c4583b2
Compare
When we have GNSS fusion enabled and yaw bit of ev_ctrl is 0, we still want to fuse the EV measurements right? So right now the In the current implementation, it would rotate the EV measurement using |
My approach with the EKF2_x_CTRL bits has been that we should strictly respect them for whether or not you're allowed to use the data. So if anything Then in the case you mention if we want to use GNSS (position) with EV position it either needs to be actual NED or if FRD we also require EV q (both valid data and bit enabled). Thoughts? |
What if you want to use the ev_q to rotate and fuse the position data but actually not fuse the ev yaw? I think this is a common use case when GNSS and ev_pos are both enabled (yaw is already observable and we don't want to use the somewhat arbitrary "yaw" from a vision system). |
I agree it's a common use case and this is actually why I'm suggesting we do it automatically based on what's available (and enabled) so that we're in a better position to do whichever is needed contextually. For example if you have vision + GNSS, but at takeoff you don't have a good fix (maybe you're inside) we fully use the EV frame (ev_pos + ev_yaw) and ignore mag (!yaw_align). Later if GNSS becomes good we reset yaw and start (cs_yaw_align=true, cs_gps=true) and ev_yaw stops (if enabled mag is also allowed to start at this point). Does that make sense? In the case of EV_CTRL the bits set which data we say we want to use, but beyond that what we actually do with it depends on broader context. |
Ok, yes, that makes sense to me. |
Ah ok. |
c4583b2
to
b42fa1d
Compare
No description provided.