Page 1 of 1

Spatial and quaternions

Posted: Fri Oct 26, 2018 8:38 pm
by IanBloomfield
Hi there,

Does anyone have any coding that can output the spatial values as quaternions?

I have used trigonometry to produce pitch and roll and complimentary filter to produce pitch and roll. For my next research however I need 3 axis and the pitch of the device is closer to 90 so it makes roll from the accelerometer quite poor. Seems like I need to introduce the magnetometer values to calculate roll when pitch is above a certain value?

Does anyone have experience with this? Or any suggestions for how to overcome?