CPC G01C 25/00 (2013.01) [G01C 17/02 (2013.01); G01C 22/00 (2013.01); G01P 13/00 (2013.01); G01P 15/00 (2013.01)] | 15 Claims |
1. An electronic device comprising:
a gyro sensor;
an acceleration sensor for outputting acceleration data about motion of the electronic device;
a geomagnetic sensor for outputting geomagnetic data about a magnetic field around the electronic device; and
a low-power processor electrically connected to the gyro sensor, the acceleration sensor and the geomagnetic sensor,
wherein the low-power processor is configured to:
operate the acceleration sensor while the gyro sensor is inactivated;
determine whether the motion of the electronic device corresponds to one of a predetermined first motion pattern and a predetermined second motion pattern, based on the acceleration data acquired by the acceleration sensor;
drive the geomagnetic sensor to thereby acquire the geomagnetic data, wherein, when the motion corresponds to the first motion pattern, the geomagnetic data is first geomagnetic data acquired at a first sample rate, and, when the motion corresponds to the second motion pattern, the geomagnetic data is second geomagnetic data acquired at a second sample rate higher than the first sample rate; and
calibrate the geomagnetic sensor, based on the geomagnetic data.
|