magnetometer integration