Hi ! I'm currently integrating an HMC5883L included in a GY-80 IMU in a personnal C++ sky tracking project. If I understand what you want to do I think you should fusion the magnetometer data with data from other sensors integrated on the same IMU. To be brief, an accelerometer allow you to detemine...