Hi @Akuma.6 Nallala ,
I believe this is correct, you are reading almost 0 LSB (equals to 0 dps) on all the 3 axis when the device, and in particular the gyroscope, is in rest condition. It is different for the accelerometer, since typically the Z axis shows 1g offset when the device is pointing towards the ceiling. For the gyro, if you oscillate your hands, you should see something similar to a sine waveform plotting the dataout.
The drivers you are linking are the correct one: in particular, here below I reported the formulas for LSB to physical unit conversions, for both axl and gyro.
/*accelerometer LSB-to-physical units conversion*/
float_t ism330dlc_from_fs2g_to_mg(int16_t lsb)
{
return ((float_t)lsb * 0.061f);
}
/*gyroscope LSB-to-physical units conversion*/
float_t ism330dlc_from_fs125dps_to_mdps(int16_t lsb)
{
return ((float_t)lsb * 4.375f);
}
If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.
-Eleon