How to get Euler's angle Yaw,Pitch and Roll in lsm6dsv16bx
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?
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?
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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.