Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

EKF: Critical yaw reset bug fix #544

Merged
merged 1 commit into from
Jan 3, 2019
Merged

EKF: Critical yaw reset bug fix #544

merged 1 commit into from
Jan 3, 2019

Conversation

priseborough
Copy link
Collaborator

@priseborough priseborough commented Dec 23, 2018

Due to a combination of previous changes, the reset of the yaw when climbing above 1.5m was not performed until 3-axis fusion was enabled. This could result in loss of navigation if the ground level magnetic declination error was large enough and the value of EKF2_MAG_TYPE and the flight profile did not cause the EKF to commence 3-axis fusion.

SITL test log before fix: https://logs.px4.io/plot_app?log=c9f62df4-3898-4e61-b6e0-791d984ea964
screen shot 2018-12-24 at 10 15 03 am

SITL test log after fix: https://logs.px4.io/plot_app?log=66c9b4a1-1d67-4b66-a424-fc7e5b165075
screen shot 2018-12-24 at 10 15 25 am

These were tested using the following modification to sitl_gazebo: priseborough/sitl_gazebo@16a86ee

We need a way to incorporate this type of magnetic field error into the reversion testing.

…g fusion

Previously, the reset of the yaw when climbing above 1.5m was not performed until 3-axis fusion was enabled. This could result in loss of navigation depending on the value of  EKF2_MAG_TYPE and the flight profile.
Copy link
Contributor

@RomanBapst RomanBapst left a comment

Choose a reason for hiding this comment

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

Makes sense.

@RomanBapst
Copy link
Contributor

@LorenzMeier Can you please merge?

@hdiethelm
Copy link

Hello,
Can you tell me if this bug is already an issue in PX4 Stable using ECL 1a11068
I don't want to update to master to avoid new problems. But it seams there is a problem with the mag sensor.
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants