2024-01-05 07:27 PM
Is there any function I can use to calculate the yaw and pitch directly from the IMU? Or do I need to find the quaternion(SFLP) and then calculate Euler's angle on my own?
Solved! Go to Solution.
2024-01-08 04:44 AM
Hi @Varsha ,
I think you are looking for the sensor fusion library to get quaternions and Euler angles.
You can refer to the MotionFX library of the X-CUBE-MEMS1 firmware function pack, which runs as middleware on STM32 and provides real-time motion-sensor data fusion. It also performs gyroscope bias and magnetometer hard iron calibration.
2024-01-08 04:44 AM
Hi @Varsha ,
I think you are looking for the sensor fusion library to get quaternions and Euler angles.
You can refer to the MotionFX library of the X-CUBE-MEMS1 firmware function pack, which runs as middleware on STM32 and provides real-time motion-sensor data fusion. It also performs gyroscope bias and magnetometer hard iron calibration.
2024-01-08 04:48 AM
You can find some additional clues here too: https://community.st.com/t5/mems-sensors/lsm6dsv-sflp/td-p/594883
2024-01-08 09:02 AM
After getting the quaternion values, How do i convert the quaternions to euler angles? can you please share some code/ documentation / link for the same.
2024-01-08 09:13 AM
I'd imagine examples are a search away..
https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles