Mpu9250 arduino tilt compensated compass. I manage to calibrate the magnetic and accelero part.