Patent attributes
A magnetic compass includes: a three-axis magnetic sensor for detecting geomagnetic vector as geomagnetic components in directions of three orthogonal axes x, y, and z; a data-plane calculating unit for calculating a data plane on which output data of the three-axis magnetic sensor are present in a sensor coordinate system of the three axes x, y, and z; a unit vector calculating unit for calculating unit vectors of a horizontal coordinate system of three orthogonal axes X, Y, and Z whose Z-axis runs vertically and X-Y plane defines a horizontal plane relative to the earth; a horizontal coordinate system conversion unit for converting geomagnetic components in the sensor coordinate system detected by the three-axis magnetic sensor into geomagnetic components in the horizontal coordinate system; an azimuth calculating unit for calculating azimuth based on the converted geomagnetic components in the horizontal coordinate system; and a display unit for displaying the calculated azimuth.