摘要 |
A mobile device or the like having a 3-axis electronic compass is rotated, and the outputs from magnetic sensors disposed in the three axis directions are input to a first arithmetic processing unit ( 11 ) so as to obtain the magnetic data X, Y, and Z. By inputting the magnetic data X, Y, and Z to a second arithmetic processing unit ( 12 ), gains Gx and Gz can be obtained. A control unit ( 16 ) generates access codes x 0 and z 0 corresponding to the gains Gx and Gz. The correspondence between the access codes x 0 and z 0 and inclination angle (pitch angle) alpha or between the gains Gx and Gz and inclination angle (pitch angle) alpha is tabulated and stored in a memory unit ( 17 ). The control unit ( 16 ) accesses the memory unit ( 17 ) so as to obtain an inclination angle (pitch angle) alpha 0 corresponding to the access codes x 0 and z 0.
|