2025-09-26 4:10 PM
Hi, I am using the LSM6DSV16BX IMU on a project where I need the Game Rotation data.
I used the Github examples as a base, and reading the Game Rotation values works well and I am able to save the quaternion data in a file. I wrote a little script that takes the Game Rotation quaternion values and applies the orientation to an object, to mimic what is possible in Unico GUI with STEVAL-MKI234, however I do not get the same performance with my custom board. For instance, I sometimes get some weird rotations around two axis even though I rotate the device around a single axis. See video:
I was wondering if any special setup was required to achieve this kind of performance ? Is there any calibration that can be made ?
I configure the Accelerometer and gyroscope to 960Hz, but batch samples of Accelerometer, Gyrometer and Game Rotation data at 120Hz in FIFO. I realize this is not much information to try and help me, I am more than happy to provide more detailed information if needed, any advice is appreciated.
Nicolas Goualard