BMA400 Raw Sensor Data

I have a pretty simple question I am very new to C languages so I couldnt find my way in BMA400 Sparkfun Library.

How does the raw sensor data look? How is it converted to the format “11:37:25.930 → Acceleration in g’s X: -0.213 Y: -0.404 Z: -0.930” I require the mathematical equations cause I cannot use the library with the microcontroller I am using. Raw data does not make sense.

Thanks in advance.

They’re 12/8 bit signed ints, depending…Poke around in here https://github.com/sparkfun/SparkFun_BM … ibrary.cpp

Find all the references to “raw”, line 438 or so show the math behind the non-raw values (reported in g’s)

You also may want to peruse a general calibration guide for IMUs if you are new to them overall