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

mounting orientation? #114

Open
texasfunambule opened this issue Apr 14, 2023 · 4 comments
Open

mounting orientation? #114

texasfunambule opened this issue Apr 14, 2023 · 4 comments

Comments

@texasfunambule
Copy link

The quat9 example seems to work fine (except maybe for compass alignement), yet calculation is all done assuming the pcb orientation is horizontal. In my project the pcb has to be vertical. I tried to change the matrices CPASS_MTX or B2S_MTX in ICM20948.cpp, but there was no way to get the orientation correct. Could not find documentation for B2S_MTX (I sassume "board 2 system"?), or indication if CPASS can be changed or is tuned for the position of the 2 dies carrying the accel/gyro and the compass. Should they be changed both simultaneously? Anybody knows?

ICM20948 on Arduino Due
https://shop.pimoroni.com/products/icm20948

@Zzx-J
Copy link

Zzx-J commented Jan 10, 2024

Same problem here :( Have you found any solution?

@texasfunambule
Copy link
Author

texasfunambule commented Jan 11, 2024 via email

@texasfunambule
Copy link
Author

about orientation on ICM-20948: i finally figured out that b2s means "bring to see" which must be when the device is oriented so that the screen is facing towards user. I don't remember detail there again except I played with quaternion computation and geometry to get angles. BN085 was fine.

@Zzx-J
Copy link

Zzx-J commented Jan 14, 2024

Hi, thanks for your reply, I decided to do the reorientation using quaternion multiplications too. Actually, I have used BNO085 before (in another project) but i was not happy with its drift so I would like to try ICM this time, what a coincidence.

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