2022-02-19 10:58 AM
Solved! Go to Solution.
2022-02-24 06:32 AM
1. The BSP_MOTION_SENSOR_GetAxes function provides ACC data in mg and GYR data in mdps.
2. These data need to be converted from mg resp. mdps to g resp. dps and you also need to provide timestamp in microseconds. You can use DI_Data_Handler function in DynamicInclinometer FW application inside X-CUBE-MEMS1 package as a reference.
2022-02-24 06:32 AM
1. The BSP_MOTION_SENSOR_GetAxes function provides ACC data in mg and GYR data in mdps.
2. These data need to be converted from mg resp. mdps to g resp. dps and you also need to provide timestamp in microseconds. You can use DI_Data_Handler function in DynamicInclinometer FW application inside X-CUBE-MEMS1 package as a reference.
2022-02-24 12:26 PM
Hi Petr,
I figured out the units of angular velocity and linear acceleration. However, I didn't know that the MotionDI_update function needed timestamp input in microseconds. I was giving input in milliseconds and hence I was getting wrong rotation. Thank you for mentioning it. Now, I am able to get the correct rotation.