PaulStoffregen / NXPMotionSense

NXP Motion Sensors for Teensy and Arduino
68 stars 53 forks source link

Accelerometer resolution #5

Open ozolli opened 6 years ago

ozolli commented 6 years ago

https://github.com/PaulStoffregen/NXPMotionSense/blob/4141f66d8c9098f260162ea333d99d04d276ce41/NXPMotionSense.h#L9

Shouldn't it be 1/2048 for a 4 g scale or am I wrong?

brunocannavina commented 5 years ago

I detect the same problem, if the sensor is 14-bit resolution and the lib set the range to +-2g (4g) 4/16384 g/LSB G_PER_COUNT must be 0,000244140625f