Why are the compass and navigation pointer on the Xiaomi 14 Ultra inaccurate (compared to iOS phones)?

The basic principle of compass detection is to measure the Earth's magnetic field to determine direction. If there are external magnetic field interferences, it can cause the compass direction to be slightly off. Devices such as phones, computers, and magnetic objects can all create magnetic field interference. Since the positions of magnetic sensors in different phones can vary, the degree of interference on the sensor itself can also differ, even in the same magnetic field environment.
If the compass is inaccurate, it is recommended to recalibrate the device in an area with minimal magnetic field interference. This can be done by performing an 8-shaped or circular calibration to eliminate external magnetic field interference.