[LSM6DS3] unbalanced angle
Hello,
I use the gyroscope of an LSM6DS3 to command the rotation of a robot.
I read the different axis with a 50ms period and I use the gyro internal timestamp to get a precise timing of each sample and I integrate the angular speed using the trapezoidal rule (https://en.wikipedia.org/wiki/Trapezoidal_rule) to get my angle in degrees.
The problem here is when I place the gyroscope on a test bench and drive two rotations of the same value in two directions, I experice a shift of about 10° per sequence.
What can be the cause of the shift here? Am I missing something ?
sincerely
ps : I of course calculate an offset to make sure the data i read from the gyro ar centered in zero
