A method of an electronic device including a geomagnetic sensor and a gyro sensor, includes: determining whether to change calibration information to be applied to sensor data; based on a determination to change the calibration information, identifying a state of the geomagnetic sensor and a state of the gyro sensor; based on identifying that the state of the geomagnetic sensor is an activated state and the state of the gyro sensor is a deactivated state, changing the calibration information at a first time point by using distribution of directions of a magnetic field, which are measured at a second time point; based on identifying that the state of the geomagnetic sensor is the activated state and the gyro sensor is the activated state, changing the calibration information by using the directions of the magnetic field and by using a rotation angle of the electronic device at the second time point.
Full Text
What is claimed is: