摘要 |
A portable phone has a CPU and a magnetic sensor unit including an X-axis magnetic sensor, a Y-axis magnetic sensor, and a temperature sensor. CPU measures at first and second temperatures the influence of a magnetic field of permanent magnets upon an output Sx of the X-axis magnetic sensor and an output Sy of the Y-axis magnetic sensor, and stores the influence data together with the first and second temperature data. CPU estimates at the present temperature the influence upon the output Sx of the X-axis magnetic sensor and the output Sy of the Y-axis magnetic sensor, from the present temperature detected with the temperature sensor and the stored influence data. CPU corrects the outputs Sx and Sy in accordance with the estimated influence and determines the direction of the portable phone from the corrected outputs Sx and Sy.
|