LSM303dhlc compass - accel

All magnetometers need to be calibrated to be useful, in the environment where they will be most used.

Great overview on calibration here. For a practical application to the LIS3MDL compass, see this forum post.