Skip to content

AP_NavEKF3: Fix yaw alignment bug preventing copter wind estimation #27636

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

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

priseborough
Copy link
Contributor

@priseborough priseborough commented Jul 24, 2024

This patch fixes the bug that was preventing copters using GPS yaw from using drag fusion to estimate wind. See #26650 for details

Testing in SITL using the https://github.com/ArduPilot/ardupilot/blob/master/Tools/autotest/default_params/copter-gps-for-yaw.parm parameters results in a wind speed being reported at the ground station with varying readings when EK3_DRAG_MCOEF is also set to a positive value.

Screenshot 2024-07-25 at 6 06 49 AM

The values reported are large and varying because the default SITL physics model does not model X and Y axis specific forces, however this test does show that that after the patch, wind estimation is active with a GPS yaw source.

When the  yaw is aligned to the GPS yaw, the recordYawResetsCompleted() function should be called the same as for any other yaw reset.
@peterbarker peterbarker merged commit 4904c71 into ArduPilot:master Jul 24, 2024
93 checks passed
@rmackay9
Copy link
Contributor

Great to see this, thanks!

@rmackay9 rmackay9 mentioned this pull request Aug 13, 2024
92 tasks
@rmackay9
Copy link
Contributor

rmackay9 commented Aug 19, 2024

Sorry, I attempted to include this in 4.5.6-beta1 but it resulted in a compile error because this PR is built on top of #24899

For now at least this fix is not included in 4.5.6-beta1

@bobzwik
Copy link

bobzwik commented Oct 11, 2024

Hello! Do you think this fix will be included in the next beta? Can't wait to test it out!

@rmackay9
Copy link
Contributor

Hi @bobzwik,

AP-4.6.0 will start beta testing soon (probably next week) so that will be the first beta that this fix appears in. I don't think we will be able to include it in 4.5.x. At least I'm not confident about doing it without assistance from others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: merge conflict
Development

Successfully merging this pull request may close these issues.

5 participants