2017-12-08 10:04 AM
Can someone explain how to calculate the mg, dps, and temperature for the data read from the corresponding registers? I'm trying to understand how to determine the scaling. The datasheet eludes to using the rate and FS settings to determine this.
2017-12-11 06:50 AM
Yes, the Full Scale (FS) setting determines ''range'' of the 16-bit values, ie for +/-16G into +32767/-32768
16 / 32768 = 488E-6 or 0.488mG
int16_t LA; // register content
double la;
la = (double)LA * 0.488e-3; // Linear Acceleration in G