CPC G01B 7/30 (2013.01) [G01D 5/16 (2013.01); G01D 18/00 (2013.01); G05B 17/02 (2013.01); G06F 1/1616 (2013.01)] | 20 Claims |
1. A method, comprising:
generating, by a first magnetometer and a second magnetometer of an electronic apparatus, first signals indicating measurements of a magnetic field, the first magnetometer and the second magnetometer being in a first hardware element and a second hardware element, respectively, of the electronic apparatus;
determining, by a processing unit of the electronic apparatus, a calibration parameter based on the first signals, the calibration parameter indicating a condition of calibration of the first and second magnetometers;
determining, by the processing unit, a reliability value based on the first signals, the reliability value indicating of a condition of reliability of the first signals;
determining, by the processing unit, a first value of a lid angle between the first hardware element and the second hardware element based on the first signals;
determining, by the processing unit, a second value of the lid angle based on the calibration parameter, the reliability value, and the first value of the lid angle; and
controlling, by the processing unit, a function of the electronic apparatus based on the second value of the lid angle.
|