Abstract—This paper deals with a real-time compensation
method of long term time-variant disturbances for
magnetometers embedded on smartphones. The proposed
method compensates the effect of long term time-variant
disturbances, continuously, using a least-square ellipsoid-based
compensation procedure. In this paper, the proposed method is
described and its advantages respect to the methods available in
literature are highlighted. Furthermore, preliminary simulation
tests have been performed and the obtained results reported