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

Claim 11:
12. A method for controlling an electronic device, the method comprising:
storing, in a memory, a temperature of each of a plurality of heating areas constituting the electronic device and a variation in a geomagnetic value sensed by a geomagnetic sensor, corresponding to the temperature,
performing linear fitting using the temperature and the variation in the geomagnetic value stored in the memory,
computing 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
compensating 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 storing of the temperature and the variation in the geomagnetic value in the memory further comprises, when an acceleration value sensed by the acceleration sensor is a predesignated value or less, sensing the temperature and the variation in the geomagnetic value and storing the temperature and the variation in the geomagnetic value in the memory.