LSM6DSV16X drift issue
Hi!
We are a group trying to get reliable rotation data out of the LSM6DSV16X sensor. The accumulated error values in the datasheet seemed promising. However, we are currently in a state, where the sensor is returning gyroscope data, but the actual observed drift is much higher (upwards of 20 degrees of drift over the period of 5 minutes).
I'll try to summarize what we are doing, but the code for the project can be found here .
We are setting up the ODR for the gyroscope and the accelerometer to be 120Hz, as that is our polling frequency. We then set the BDR of the SFLP to be also at that frequency. We then run through the FIFO every iteration, extract out the relevant data and send it to our server software, where it gets displayed. This part works, we get about 120 updates every second, and the actual rotation data seems accurate. However if the sensor is continuously moved over 5 minutes, we get unacceptably big drift.
We are currently only really using the fusioned game vector for this problem, the gravity vector and the gyro bias are mostly just ignored. We are running with limits of 4g acceleration and 2000dps. We tried setting the ODR rate for the sensors higher (up to the maximum 7.86k limit), but that didn't help.
So the question is, how do you achieve the claimed accuracies listed in the datasheet?
