Automatically updating hard iron and soft iron coefficients of a magnetic sensor
First Claim
1. A method of automatically updating hard iron and soft iron coefficients of a magnetic sensor of a device, comprising:
- measuring, by the magnetic sensor, a magnetic field during rotations of the device;
determining by at least a criterion whether to input the measurements of the magnetic field into a coefficient estimator;
calculating, by the coefficient estimator, new hard iron and soft iron coefficients upon receiving the measurements of the magnetic field;
measuring an angular rotation by a gyro;
successively measuring the magnetic field, by the magnetic sensor, while simultaneously measuring the angular rotation by the gyro, comprising;
measuring the magnetic field while applying the existing hard and soft iron coefficients to the successive magnetic sensor measurements to generate a first rotation calculation;
measuring the magnetic field while applying the newly calculated hard and soft iron coefficients to the successive magnetic sensor measurements to generate a second rotation calculation;
comparing the first calculated rotation and the second calculated rotation to angular rotation measured by the gyro;
selecting the one of the first calculated and the second calculated rotation that most closely matches the angular rotation as measured by the gyro; and
measuring, by the magnetic sensor, the magnetic field by the magnetic sensor during rotations of the device using the newly calculated hard and soft iron coefficients when the second calculated rotation is selected.
1 Assignment
0 Petitions
Accused Products
Abstract
Apparatuses, methods and systems apparatus for automatically updating hard iron and soft iron coefficients of a magnetic sensor of a device are disclosed. One method includes making measurements of a magnetic field by the magnetic sensor during rotations of the device, determining by at least a criterion whether to input the measurements of the magnetic field into a coefficient estimator, calculating, by the coefficient estimator, new hard iron and soft iron coefficients upon receiving the measurements of the magnetic field, determining a quality of the newly calculated hard iron and soft iron calculated coefficients, and updating existing hard iron and soft iron coefficients to the newly calculated hard iron and soft iron coefficients only if the quality of the newly calculated hard iron and soft iron coefficients.
20 Citations
18 Claims
-
1. A method of automatically updating hard iron and soft iron coefficients of a magnetic sensor of a device, comprising:
-
measuring, by the magnetic sensor, a magnetic field during rotations of the device; determining by at least a criterion whether to input the measurements of the magnetic field into a coefficient estimator; calculating, by the coefficient estimator, new hard iron and soft iron coefficients upon receiving the measurements of the magnetic field; measuring an angular rotation by a gyro; successively measuring the magnetic field, by the magnetic sensor, while simultaneously measuring the angular rotation by the gyro, comprising; measuring the magnetic field while applying the existing hard and soft iron coefficients to the successive magnetic sensor measurements to generate a first rotation calculation; measuring the magnetic field while applying the newly calculated hard and soft iron coefficients to the successive magnetic sensor measurements to generate a second rotation calculation; comparing the first calculated rotation and the second calculated rotation to angular rotation measured by the gyro; selecting the one of the first calculated and the second calculated rotation that most closely matches the angular rotation as measured by the gyro; and measuring, by the magnetic sensor, the magnetic field by the magnetic sensor during rotations of the device using the newly calculated hard and soft iron coefficients when the second calculated rotation is selected. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A sensing system that automatically updates hard iron and soft iron coefficients of a magnetic sensor of the system, comprising:
-
the magnetic sensor operative to measure a magnetic field during rotations of the device; a gyroscope operative to measure an angular rotation; electronic control circuitry, the electronic control circuitry operative to; determine by at least a criterion whether to input the measurements into a coefficient estimator to generate a new hard iron and soft iron coefficients; wherein the magnetic sensor successively measures the magnetic field simultaneously with the the gyroscope measuring the angular rotation; wherein the electronic control circuitry is further operative to; apply the existing hard and soft iron coefficients to the successive magnetic sensor measurements to generate a first rotation calculation; apply the newly calculated hard and soft iron coefficients to the successive magnetic sensor measurements to generate a second rotation calculation; compare the first calculated rotation and the second calculated rotation to angular rotation measured by the gyroscope; select the one of the first calculated and the second calculated rotation that most closely matches the angular rotation measured by the gyro; and measuring the magnetic field by the magnetic sensor during rotations of the device using the newly calculated hard and soft iron coefficients when the second calculated rotation is selected. - View Dependent Claims (13, 14, 15, 16)
-
-
17. A method of automatically updating coefficients of a magnetic sensor input to a Kalman filter of a device, comprising:
-
sensing, by a magnetic sensor, a magnetic vector of an ambient magnetic field; sensing, by a gyro, an angular rotation; tracking motion of the magnetic vector, wherein a tip of the magnetic vector traces to a surface of an ellipsoid; detecting whether the tip is tracing a new surface area of the ellipsoid, wherein a new surface area has not been previously traced; detecting whether the tip trace moves more than a predetermined minimum angular rotation; recording a certain number of magnetic measurements while the tip is tracing the new surface area and moving more than the a predetermined minimum angular rotation; for each new magnetic measurement; a. comparing angular rotation between successive new magnetic measurements and an angular rotation of a gyroscope measurement, and comparing angular rotation between successive prior magnetic measurements and angular rotation of the gyroscope measurement, and determine if the new magnetic measurements more closely match the gyroscope measurement; b. comparing a difference of a magnetic magnitude of successive magnetic measurements using newly calculated hard iron and soft iron coefficients, with a difference of magnetic magnitude of successive magnetic measurements using the previously calculated hard iron and soft iron coefficients, and determining if a magnitude difference for the newly calculated hard iron and soft iron coefficients is less than a magnitude difference for the previous calculated hard iron and soft iron coefficients; updating magnetic coefficients of the Kalman filter with the newly calculated hard iron and soft iron coefficients if the difference based on the newly calculated hard iron and soft iron coefficients more closely match, and differ by less; generating, by the Kalman filter, an estimated orientation (Q) of the device using the newly calculated hard iron and soft iron coefficients based on the sensed magnetic vector and the sensed angular rotation.
-
-
18. A method of tracking a magnetic field, comprising:
-
measuring, by a magnetic sensor, successive magnetic vectors of a magnetic field; measuring, by a gyro, an angular rotation; comparing an angular rotation between successive new magnetic vector measurements and angular rotation measurements and comparing angular rotation between successive prior magnetic vector measurements and angular rotation measurements, and determining if the new magnetic vector measurements more closely match the angular rotation measurements; comparing a difference of magnetic magnitude of successive magnetic measurements using newly calculated hard iron and soft iron coefficients, with a difference of magnetic magnitude of successive magnetic measurements using previously calculated hard iron and soft iron coefficients, and determining if a magnitude difference for the newly calculated hard iron and soft iron coefficients is less than a magnitude difference for the previously calculated hard iron and soft iron coefficients; and updating magnetic coefficients of an adaptive filter with new coefficients if a difference based on the newly calculated hard iron and soft iron coefficients more closely match, and differ by less; generating, by the adaptive filter, an estimated orientation (Q) of the device using the newly calculated hard iron and soft iron coefficients based on the sensed magnetic vector and the sensed angular rotation.
-
Specification