摘要 |
<p>A mobile terminal or the like having a 3-axis electronic compass is rotated and an output of a magnetic sensor arranged on each of the axes is inputted to a first calculation unit (11), thereby obtaining magnetic data X, Y, Z. The magnetic data X, Y, Z are inputted to a second calculation unit (12) so as to obtain gains Gx, Gz. A control unit (16) generates access codes x0, z0 corresponding to the gains Gx, Gz. The correspondence between the access codes x0, z0 or the gains Gx, Gz and the inclination angle (pitch angle) a is stored as a table in a memory unit (17). The control unit (16) accesses the memory unit (17) and acquires the inclination angle (pitch angle) a0 corresponding to the access codes x0, z0.</p> |