MotionDI precision issue when translating the sensor
I'm using the MotionDI "dynamic inclinometer" library with a LSM6DSOX (on a NUCLEO-L476RG).
The rotation computed by the library looks right as long as the sensor remains stationary. But when I translate the sensor, there is a temporary but significant error in the angles (several degrees).
The issue can be seen when running the CUSTOM_DynamicInclinometer sample code with the Unicleo-GUI Windows application. When I display the dozer 3D model (in the "Dynamic Inclinometer Model" window):
- when rotating the sensor, the orientation of the dozer correctly matches the orientation of the sensor,
- when translating the sensor (by moving it at the surface of a table), the dozer wrongly rotates a few degrees, then immediately comes back to the right orientation. This happens both when starting and ending the translation movement.
Is it the expected behavior? What software and/or hardware solution can I use to solve this? Thanks.
