Merged magnetometer hard/soft calibration into IMU