Patent ID: 9702957
Date: 2017-07-11
CPC Classifications: G01C,G01R

Claim:
1. A method, comprising: measuring an orientation of a device by a magnetometer, the orientation being an angle between the magnetic north direction and a component of a magnetic vector measured by the magnetometer, wherein the component of the magnetic vector is on a horizontal surface determined by acceleration of gravity; determining, by the magnetometer, a current position of the device through a global positioning system, wherein current position information corresponding to the current position is obtained by the magnetometer; querying, by the magnetometer, a geomagnetic inclination angle list according to the current position information to acquire a geomagnetic inclination angle corresponding to the current position; calculating, by the magnetometer, a deviation of the measured orientation according to the geomagnetic inclination angle; correcting the measured orientation based on the calculated deviation of the measured orientation; and providing a corrected orientation of the device according to the corrected measured orientation.