摘要 |
According to one embodiment, an electronic apparatus includes acceleration computing unit correcting an output value from a acceleration sensor with an offset value so as to obtain an acceleration of a body, rest determining unit determining whether or not the body is at rest based on an output value from the acceleration sensor, when a absolute value of a temperature difference between a measurement temperature and a reference temperature exceeds a predetermined value, level determining unit determining whether or not the body is on the level based on the output value from the acceleration sensor and the offset value, when it is determined that the body is at rest, and offset value updating unit setting a new offset value corresponding to an output value outputted from the acceleration sensor and setting the measurement temperature as a new reference temperature, when it is determined that the body is on the level.
|