With the auto-calibration, users need to perform Figure-8 like motion in 3D space a few times. Then the auto-calibration will collect the magnetometer raw data from the LSM303DLHC and determine the calibration parameters. When the calibration quality is good, the compass is ready to go.
For more details please visit www.st.com/mems
Retrieving data ...