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

Axis Interconnection/Bleed #67

Closed
FugLong opened this issue Feb 2, 2023 · 2 comments
Closed

Axis Interconnection/Bleed #67

FugLong opened this issue Feb 2, 2023 · 2 comments

Comments

@FugLong
Copy link

FugLong commented Feb 2, 2023

Hi all, I'm implementing fusion on an arduino 33 ble to create a head tracker for PC games.

I am currently encountering a problem where my yaw and roll axis work as they should, but my pitch axis affects yaw as well as pitch. I'm hoping someone more knowledgeable in fusion (and math generally) could point me to some possible causes of this behavior so I can look into them.

I have already ensured that the weird orientation on the 33 ble's mag is being compensated for when updating the quaternion, but the pitch axis still effects yaw somehow. Any details, explanations, or other advice would be greatly appreciated.

Here are some plots demonstrating the behavior:
https://imgur.com/a/FJZQ8XB

I'm using this implementation, its fusion files are 98% identical to this repo, just modified for this specific arduino.

@xioTechnologies
Copy link
Owner

The code you are using appears to be significantly different to Fusion. It also appears to have obvious mathematical errors. For example, line 781 of ReefwingAHRS.cpp is an invalid conversion from NWU to NED.

I suggest that you use Fusion as provided in this repository. If you need Fusion to use NED then please use this branch which will soon be merged into master.

@FugLong
Copy link
Author

FugLong commented Feb 3, 2023

@xioTechnologies Thank you so much, I will switch to use that branch and let the Reefwing maintainer know about the conversion error they added

@FugLong FugLong closed this as completed Feb 3, 2023
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

No branches or pull requests

2 participants