cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the euler angles Yaw,pitch,roll in lsm6dso?

TejasK
Associate II

Hi,
We are using the LSM6DSO in our project to find the euler angles.we are new to this motionfx in stm32. please tell us from where we have to start to find the euler angles.Do we need to add any of the files in the stm32?
please tell us from the beginning.

2 REPLIES 2
Federica Bossi
ST Employee

Hi @TejasK ,

From the STM32Cube firmware package, locate the LSM6DSO sensor driver and add the driver files to your project. Then initialize the sensor in your code.

Add MotionFX files to your project and include MotionFX headers in your main code. Initialize the MotionFX library with sensor parameters (set sensor data rates and full scales matching your sensor configuration).

Store raw data in the format expected by MotionFX.  Call the MotionFX processing function with raw sensor data. MotionFX will output orientation data, including quaternions and Euler angles.

Here are some useful links:

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
TejasK
Associate II

Thank you for the reply.
I have one more question regarding this?
do we need to upload any firmware related to this ?
is there any examples related to the gyroscope and acclerometer?