Spatial and quaternions
Posted: Fri Oct 26, 2018 8:38 pm
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?
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?