How do I calculate the gyroscope sensitivity?
Hello,
I'm integrating the LSM6DSO32 into an MCU project and I'm using the example drivers from CubeMx.
The problem is that I don't understand how the gyroscope sensitivity is calulated into the drivers. The constants for the sensitivities at the various fullscale setting are the following:
#define LSM6DSO32_GYRO_SENSITIVITY_FS_125DPS 4.375f
#define LSM6DSO32_GYRO_SENSITIVITY_FS_250DPS 8.750f
#define LSM6DSO32_GYRO_SENSITIVITY_FS_500DPS 17.500f
#define LSM6DSO32_GYRO_SENSITIVITY_FS_1000DPS 35.000f
#define LSM6DSO32_GYRO_SENSITIVITY_FS_2000DPS 70.000fHowever if I calculate them with the classical ADC sensitivity equation (that works for the accelerometers) I obtain slightly different values:
GYRO_FS=500;
GYRO_SENSITIVITY=2*GYRO_FS/2^16*1000; //=15.259I noted that the ratio between the values that I calculate and those in the drivers is constant (1.1469), therefore I suppose I'm missing some scaling factor.
Could someone clarify why the equation isn't correct?
Thank you,
Davide.
