摘要 |
One or more sensors (111) in a portable electronic device (1) have individual status parameter in response to different using configurations. When the portable electronic device (1) operates in a first using configuration, an electronic compass in the portable electronic device (1) loads a corresponding first default setting, according to the status parameter of the sensors (111) operated in the first using configuration, and detects the geomagnetic field for outputting azimuth data. When the portable electronic device (1) changes its configuration from the first using configuration to a second using configuration, the electronic compass stops detecting the geomagnetic field and loads a corresponding second default setting, according to the status parameter of the sensors (111) operated in the second using configuration, and detects the geomagnetic field for outputting azimuth data. The electronic compass is capable of properly detecting the geomagnetic field by loading different default settings when facing interference of different magnetic fields.
|