Patent ID: 11965939
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Measurement (Instruments)
Classification: CPC G | IPC G

Claim 6:
7. An electronic device comprising:
a memory,
a geomagnetic sensor, and
at least one processor configured to:
perform linear fitting using a temperature of each of a plurality of heating areas previously stored in the memory and a variation in a geomagnetic value sensed by the geomagnetic sensor,
compute an error between the variation in the geomagnetic value and an estimated value for the variation in the geomagnetic value, based on a result of the linear fitting,
determining a scheme for compensating for the geomagnetic value based on the computed error, and
compensate for the geomagnetic value sensed by the geomagnetic sensor using the determined scheme when a variation in temperature is detected for at least one heating area in the plurality of heating areas,
wherein the at least one processor is further configured to compute average values of compensated geomagnetic values and, when a difference between the average values is a predesignated threshold or more, re-sense the geomagnetic value, and update the variation in the geomagnetic value stored in the memory.