Dear,
I have got the quaternion value from BHI160 using MCU.
Could you let me know the way to calculate the quaternion x,y,z,w to degrees value?
BR,
Gideon
Solved! Go to Solution.
You can refer to the following page about how to convert quarternion data into angles.
https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles
In the mean time, if you care about the device orientation angle, you can directly use orientation sensor which output angle value direclty.
Hi Vincent,
Thanks for your help.
Could you let me know the part number for the orientation sensor of Bosch Sensortec?
Regards,
I mean the virtual sensor inside BHI160B, you can enable "VS_ID_ORIENTATION" while intial the BHI160B.