I am developing an Android app that reads data from the magnetic field sensor. I convert the sensor data to the Earth's coordinate system as instructed here and here.
The converted data looks good. However, the X values are always close to zero. The first image below shows the original data and the second one shows the converted data. Please notice that all the axis values change in the first figure. In the second figure, only Y and Z axis change and X is always close to zero. Does anyone know why this happens?
Thanks!