Processing compass for the LSM303DLHC sensor