摘要 |
PROBLEM TO BE SOLVED: To efficiently calibrate a geomagnetic sensor.SOLUTION: An electronic apparatus has a magnetic sensor for measuring magnetism including geomagnetism. The electronic apparatus has a processor for detecting a change in magnetic field environment based on a value measured by the magnetic sensor. When the change in magnetic field environment is detected, the processor determines whether or not only an azimuth use application is activated, which uses the value measured by the magnetic sensor for an azimuth estimation, out of applications using the measured value. As a result of the determination, the processor requests a user to perform a predetermined operation when applications other than the azimuth use application are activated while suspending the request for the predetermined operation when only the azimuth use application is activated. Using a value measured by the magnetic sensor after the predetermined operation is requested, the processor performs a process of calculating an offset corresponding to influence of a magnetic field inside the electronic apparatus on the value measured by the magnetic sensor.SELECTED DRAWING: Figure 2 |