Patent attributes
In a compass sensor unit, an azimuth data computing method is carried out by the steps of: inputting a signal from a geomagnetic sensor to measure magnetic field; determining whether to store measurement data of the magnetic field based on a distance from the last stored measurement data; calculating an offset value based on the stored data; making a comparison for each component of a plurality of measurement data used for calculating the offset value, and judging the offset value to be valid when a difference between the maximum and minimum values of each component is a given value or more; updating the already stored offset value to the offset value judged to be valid; and correcting newly provided measurement data by the updated offset value to compute azimuth data.