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

Q attitude estimator improvements #9361

Merged
merged 5 commits into from
May 11, 2018
Merged

Conversation

bkueng
Copy link
Member

@bkueng bkueng commented Apr 23, 2018

This brings 2 changes to the q estimator:

  • Allow it to be used on boards w/o a mag by setting ATT_W_MAG to 0. @nathantsoi this will help with the omnibusf4sd, since it does not have a mag (You will need to enable modules/attitude_estimator_q and modules/local_position_estimator in the cmake config and set SYS_MC_EST_GROUP to 1). We should consider using these params as default on that board.
  • Fuse accel data only if its norm is close to 1 g to reduce attitude drift on setups w/o GPS or external mag. To use it, disable ATT_ACC_COMP.
    This could use a bit more testing, also on fixed-wing.

Note that this PR does not change the default behavior.

@MaEtUgR @RomanBapst

…city not used

This reduces attitude drift on vehicles w/o GPS. The default behavior is
unchanged, to use it, disable ATT_ACC_COMP.
@dagar
Copy link
Member

dagar commented Apr 23, 2018

If you're going to be testing attitude_estimator_q could you cherry-pick the pending mathlib matrix changes as well? https:/PX4/Firmware/pull/9181/commits

Only this commit is needed: 909845a

dagar and others added 2 commits April 23, 2018 19:07
…cm init

Quaterion::from_dcm does not set *this, but just returns the resulting
Quaterion.
@bkueng
Copy link
Member Author

bkueng commented Apr 23, 2018

@dagar I applied 909845a, but it required additional changes: 78233b2. If I remember correctly the quaterion multiplications need to be swapped when switching from mathlib to matrix.

@dagar
Copy link
Member

dagar commented Apr 23, 2018

Thanks, that's exactly what I was hoping would be checked.

@bkueng bkueng changed the title [WIP] Q attitude estimator improvements Q attitude estimator improvements May 11, 2018
@bkueng
Copy link
Member Author

bkueng commented May 11, 2018

Test-flown again, this is good to go

@LorenzMeier
Copy link
Member

@priseborough Could we get equivalent changes into EKF2?

@LorenzMeier LorenzMeier merged commit 12436c1 into master May 11, 2018
@LorenzMeier LorenzMeier deleted the q_estimator_improvements branch May 11, 2018 07:34
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.

3 participants