Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
HEADING CONFIDENCE INTERVAL ESTIMATION
Document Type and Number:
WIPO Patent Application WO/2014/163998
Kind Code:
A1
Abstract:
An inertial measurement system is disclosed. The inertial measurement system has an accelerometer processing unit that generates a calibrated accelerometer data. The inertial measurement system further includes a magnetometer processing unit generates a calibrated magnetometer data, and a gyroscope processing unit generates a calibrated gyroscope data. Using the calibrated accelerometer data, the calibrated magnetometer data, and the calibrated gyroscope data, the inertial measurement system generates a heading angle error indicative of the accuracy of the heading angle error.

Inventors:
ZHENG YUAN (US)
LIN SHANG-HUNG (US)
KEAL KERRY (US)
Application Number:
PCT/US2014/019759
Publication Date:
October 09, 2014
Filing Date:
March 02, 2014
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
INVENSENSE INC (US)
ZHENG YUAN (US)
LIN SHANG-HUNG (US)
KEAL KERRY (US)
International Classes:
G06F19/00
Domestic Patent References:
WO2002037827A22002-05-10
WO2009063400A22009-05-22
Foreign References:
US20060027404A12006-02-09
US6636826B12003-10-21
US20110292166A12011-12-01
US20120197590A12012-08-02
US20070030001A12007-02-08
US20110178708A12011-07-21
US20130002857A12013-01-03
US20120083237A12012-04-05
US20110066395A12011-03-17
US20120217958A12012-08-30
US20070032951A12007-02-08
US20130046485A12013-02-21
Other References:
See also references of EP 2973127A4
Attorney, Agent or Firm:
IMAM, Maryam (Suite 255San Jose, California, US)
Download PDF:
Claims:
Claims

1. An inertial measurement system comprising:

an accelerometer processing unit operable to generate a calibrated

accelerometer data;

a magnetometer processing unit operable to generate a calibrated

magnetometer data; and

a gyroscope processing unit operable to generate a calibrated gyroscope data, wherein the inertial measurement system is operable to generate an orientation angle indicative of the accuracy of the orientation angle using the calibrated accelerometer data, the calibrated magnetometer data, and the calibrated gyroscope data.

2. The inertial measurement system of claim 1, wherein the accuracy of the

orientation angle is a measure of the correctness of the orientation angle over an interval of time.

3. The inertial measurement system of claim 1, wherein the inertial measurement system is operable to generate a confidence interval of the orientation.

4. The inertial measurement system of claim 3, wherein the confidence interval is indicative of the accuracy of the orientation angle.

5. The inertial measurement system of claim 3, wherein the confidence interval is related to a statistical property of the inner product of an accelerometer vector and a magnetometer vector, the accelerometer vector being a vector related to the calibrated accelerometer data and the magnetometer vector being a vector related to the calibrated magnetometer data.

6. The inertial measurement system of claim 1, wherein the accelerometer

processing unit includes an accelerometer calibration and gravity extraction block responsive to an accelerometer data and an inverse quaternion signal and operable to generate the calibrated accelerometer data in world coordinates.

7. The inertial measurement system of claim 6, wherein the accelerometer

processing unit further includes a first comparator operable to compare the calibrated accelerometer data to a predefined reference in world coordinates to generate a first comparison output.

8. The inertial measurement system of claim 7, wherein the magnetometer

processing unit includes a magnetometer calibration and anomaly rejection block responsive to a magnetometer data and the inverse quaternion signal and operable to generate the calibrated magnetometer data in world coordinates.

9. The inertial measurement system of claim 8 wherein the magnetometer processing unit further includes a second comparator operable to compare the calibrated magnetometer data to the predefined reference in world coordinates and to generate a second comparison output.

10. The inertial measurement system of claim 9, wherein the gyroscope processing unit includes a gyroscope calibration block responsive to a gyroscope data and operable to generate the calibrated gyroscope data.

11. The inertial measurement system of claim 10, wherein the gyroscope processing unit further includes a gyroscope integration block operable to integrate the calibrated gyroscope data and generate a gyroscope quaternion data.

12. The inertial measurement system of claim 11, further including a sensor fusion block responsive to the summation of the first and the second comparison outputs and the gyroscope quaternion data, the sensor fusion block operable to generate a quaternion output representative of the orientation.

13. The inertial measurement system of claim 12, further including a converter

responsive to the summation of the first and the second comparison outputs and generate the confidence interval.

14. The inertial measurement system of claim 16, further including an inverse block responsive to the quaternion output and operable to generate the inverse quaternion signal.

15. The inertial measurement system of claim 14, further including a transform block responsive to the quaternion output to generate orientation.

16. The inertial measurement system of claim 1, further including an accelerometer, a magnetometer, and a gyroscope, wherein the accelerometer, the magnetometer, and the gyroscope reside on one semiconductor chip and a calibration and gravity extraction block, a magnetometer calibration and anomaly rejection block, a gyroroscope calibration block, a gyroscope integration block, a sensor fusion, comparators, an inverse block, and a converter reside on another semiconductor chip.

17. The inertial measurement system of claim 1, further including an accelerometer, a magnetometer, and a gyroscope, wherein the accelerometer, the magnetometer, the gyroscope, the accelerometer processing unit, the magnetometer processing unit, the gyroscope processing unit, a sensor fusion, comparators, an inverse block, and a converter reside on the same semiconductor chip.

18. The inertial measurement system of claim 8, wherein the inertial measurement system uses the accelerometer data as a reference to a gravity direction and the magnetometer data as a reference to a magnetic north direction.

19. The inertial measurement system of claim 7, wherein the calibration and gravity extraction unit and the first comparator are implemented in hardware or software.

20. The inertial measurement system of claim 7, wherein the magnetometer

calibration and anomaly rejection block and the first comparator are implemented in hardware or software.

21. The inertial measurement system of claim 1, wherein a gyroscope calibration

block and a gyroscope integration block are implemented in hardware or software.

22. An inertial measurement system comprising: an accelerometer processing unit operable to generate a calibrated

accelerometer data;

a magnetometer processing unit operable to generate a calibrated

magnetometer data;

a gyroscope processing unit operable to generate a calibrated gyroscope data, wherein the inertial measurement system is operable to generate an angle error, the accuracy of which is measured using a confidence interval relating to the calibrated accelerometer data and the calibrated magnetometer data.

23. A method of estimating heading using an inertial measurement system

comprising:

calibrating an accelerometer data to generate a calibrated accelerometer data with an accelerometer calibration and gravity extraction block; calibrating a magnetometer data to generate a calibrated magnetometer data with a magnetometer calibration and anomaly rejection block; calibrating a gyroscope data to generate a gyroscope data with a gyroscope calibration block; and

using the calibrated accelerometer data, the calibrated magnetometer data, and the calibrated gyroscope data, generating an angle error, the angle error being a measure indicative of the accuracy of the orientation angle.

24. The method of estimating a heading, as recited in claim23, wherein the measure is a confidence interval value.

25. The method of estimating heading, as recited in claim23, further including

comparing the calibrated accelerometer data to a predefined reference in world coordinates to generate a first comparison output.

26. The method of estimating heading, as recited in claim 23, further including

comparing the calibrated magnetometer data to the predefined reference in world coordinates to generate a second comparison output.

27. The method of estimating heading, as recited in claim 26, wherein calibrated gyroscope data is integrated.

28. The method of estimating heading, as recited in claim 27, further including

generating an estimate of the angle and an error boundary using a summation of the first and the second comparison outputs.

29. A method of generating an angle error comprising:

determining whether or not a magnetic anomaly is detected;

if a magnetic anomaly is not detected, calculating an orientation error boundary with tilt and heading compensation from a calibrated accelerometer data, a calibrated magnetometer data, and a calibrated gyroscope data; and

if a magnetic anomaly is detected, calculating an orientation error boundary using gyroscope data.

Description:
PATENT APPLICATION

HEADING CONFIDENCE INTERVAL ESTIMATION

Cross Reference to Related Applications

[01] This application claims priority to US Provisional Application No. 61/783,220, titled, "Heading Confidence Interval Estimation", by Zheng, on March 14, 2013 and claims priority to US Provisional Application No. 61/780,475, titled "Heading

Confidence Interval Estimation", by Zheng, on March 13, 2013.

Background

[02] Various embodiments of the invention relate generally to an inertial measurement system and particularly to measurement of the accuracy of orientation employed in the inertial measurement system.

[03] Motion tracking systems, employed in an inertial measurement system or comprising the inertial measurement system, use motion sensors. Motion sensors are generally a gyroscope, an accelerometer, and a magnetometer sensor. The heading data, or the yaw orientation angle in the world coordinate system, is one of the key outputs from the motion tracking system in applications such as vehicle navigation or handset compass. The heading output is calculated from several motion sensors in the motion tracking system, the motion sensors being as follows: 3-axis gyroscope sensor, 3-axis accelerometer, and 3-axis magnetometer. Each sensor has 3-axis (x, y, z) measurement outputs, which are orthogonal to each other. The 3-axis measurement elements (yaw, roll and pitch) are aligned among the three sensors.

[04] Among the three sensors, the accelerometer data is treated as the reference of the gravity direction (presumably the dominant component of the accelerometer data when the device movement is slow) and the magnetometer is treated as the reference to earth magnetic field direction (assuming no magnetic disturbance). Theoretically, the heading vector, i.e. the vector that points to the magnetic north, can be obtained by projecting the magnetometer data onto the plane that is perpendicular to the gravity vector. In reality, however, since the magnetometer suffers from environmental magnetic disturbance and the accelerometer senses other forms of accelerations together with gravity when the device is in motion, the magnetometer-accelerometer combination often leads to large heading error. Typically, the algorithms used in a sensor fusion, a part of the motion tracking system remedies the disturbance problem by leveraging the gyroscope. The gyroscope is immune to magnetic disturbance and linear acceleration interference when dynamically tracking the orientation change and while using the magnetometer and accelerometer data as the long-term reference to cancel the potential angle drift from the gyroscope imperfection.

[05] Stated differently, motion tracking systems typically use a motion sensor that has distortion. The motion tracking system includes a motion tracking signal that has some uncertainty particularly because the motion tracking system is modeled as a stochastic system. For example, in calculating orientation, an error is calculated because once the error is known, it can be used as a measure of confidence in the calculated orientation. Currently, a rudimentary algorithm is used to calculate an estimate of the angle error. The algorithm is merely a scale of the confidence, such as discrete indicators, 1, 2, 3, and 4, with 1 indicating, for instance, low confidence to 4 indicating the most confidence within plus or minus 5 degrees. This is obviously not a precise estimate of the error. Further, in current systems, an estimate of the error cannot be put in a Kalman filter because an inverse function of a large matrix needs to be calculated thereby making the computation too complex to realize. Thus, there is effectively no error measurement provided in current systems, rather, a description of the error is provided. It is accordingly desirable to more accurately estimate the heading in a motion tracking system.

Summary

[06] Briefly, an embodiment of the invention includes an inertial measurement system with an accelerometer processing unit that generates a calibrated accelerometer data. The inertial measurement system further includes a magnetometer processing unit that generates a calibrated magnetometer data. The inertial measurement system further includes a gyroscope processing unit that generates a calibrated gyroscope data. Using the calibrated accelerometer data, the calibrated magnetometer data, and the calibrated gyroscope data, the inertial measurement system generates a heading angle and an error that is indicative of the accuracy of the angle error.

[07] A further understanding of the nature and the advantages of particular embodiments disclosed herein may be realized by reference of the remaining portions of the specification and the attached drawings.

Brief Description of the Drawings

[08] Fig. 1 shows a motion tracking system 105, in accordance with an embodiment of the invention.

[09] Figs. 2a through 2f show exemplary applications of the system 105, in accordance with various embodiments of the invention.

[10] Fig. 3a shows a block diagram of the relevant features of the motion processing unit, in accordance with an embodiment of the invention.

[11] Fig. 3b shows the relationship of the outputs of motion processing unit with varying magnetic field.

[12] Fig. 4 shows a flow chart 400 of the steps performed by the system 300 in relation to magnetic anomaly detection by the block 316.

[13] Fig. 5 shows a heading statistics calculation.

[14] Fig. 6 shows the potential heading error caused by the accelerometer bias estimation error.

Detailed Description of Embodiments

[15] In the described embodiments, a motion tracking device also referred to as Motion Processing Unit (MPU) includes at least one sensor in addition to electronic circuits. The sensors, such as the gyroscope, the magnetometer, the accelerometer, microphone, pressure sensors, proximity, ambient light sensor, among others known in the art, are contemplated. Some embodiments include accelerometer, gyroscope, and magnetometer, which each provide a measurement along three axes that are orthogonal relative to each other, referred to as a 9-axis device. Other embodiments may not include all the sensors or may provide measurements along one or more axis. The sensors are formed on a first substrate. Other embodiments may include solid-state sensors or any other type of sensors. The electronic circuit in the motion tracking device receives measurement outputs from the one or more sensors. In some embodiments, the electronic circuit processes the sensor data. While in other embodiments, the sensor data is processed on a processor on a different chip. The electronic circuit is implemented on a second silicon substrate. The first substrate is vertically stacked, attached and electrically connected to the second substrate in a single semiconductor chip.

[16] In the described embodiments, "raw data" refers to measurement outputs from the sensors which are not yet processed. "Motion data" refers to processed sensor data. Processing may include applying a sensor fusion algorithm or applying any other algorithm such as calculating confidence interval. In the case of the sensor fusion algorithm, data from one or more sensors are combined to provide an orientation of the device. In an embodiment, orientation includes heading angle and/or confidence value. In the described embodiments, a MPU may include processors, memory, control logic and sensors among structures. In an embodiment, confidence interval indicates the bounds of the heading uncertainty indicating the error and hence the confidence in the value of the heading estimation. In the described embodiments, predefined reference in world coordinates refers to a coordinate system where one axis of the coordinate system aligns with the earth's gravity, a second axis of the coordinate system coordinate points towards magnetic north and the third coordinate is orthogonal to the first and second coordinates.

[17] Fig. 1 shows a motion tracking system 105, in accordance with an embodiment of the invention. The system 105 is shown to include a MPU 110, an application processor 114, an application memory 112, and external sensors 108. In an embodiment, MPU 110 includes processor 102, memory 104, and sensors 106. The memory 104 is shown to store algorithm, raw data and/or processed sensor data from the sensors 106 and/or the external sensors 108. In an embodiment, sensors 106 includes accelerometer, gyroscope, magnetometer, pressure sensor, microphone and other sensors. External sensors 108 may include accelerometer, gyroscope, magnetometer, pressure sensor, microphone, proximity, haptic sensor, and ambient light sensor among others sensors.

[18] In some embodiments, processor 102, memory 104 and sensors 106 are formed on different chips and in other embodiments processor 102, memory 104 and sensors 106 reside on the same chip. In yet other embodiments, a sensor fusion algorithm that is employed in calculating the orientation is performed externally to the processor 102 and MPU 110. In still other embodiments, the sensor fusion and confidence interval is determined by MPU 110.

[19] In an embodiment, the processor 102 executes code, according to the algorithm in the memory 104, to process the data in the memory 104. In another embodiment, the application processor sends to or retrieves from application memory 112 and is coupled to the processor 102. The processor 102 executes the algorithm in the memory 104 in accordance with the application in the processor 114. Examples of applications are as follows: a navigation system, compass accuracy, remote control, 3-dimensional camera, industrial automation, or any other motion tracking application. In the case of the 3- dimensional application, a bias error or sensitivity error is estimated, by the processor 102. It is understood that this is not an exhaustive list of applications and that others are contemplated.

[20] Figs. 2a through 2f show exemplary applications of the system 105, in accordance with various embodiments of the invention. Fig. 2a shows an automobile including the system 105. The system 105 calculates the orientation of the automobile to output a heading and a confidence interval. Similarly, in Fig. 2b, a pedometer is shown to include the system 105 for calculating the orientation of the pedometer. Fig. 2c shows a wearable sensor on a user's wrist with the wearable sensor employing the system 105. In some embodiments, the wearable sensor can be worn on any part of the body. System 105 calculates the orientation of the wearable sensor. In Fig. 2d, a smartphone/tablet is shown to employ the system 105. The system 105 calculates the orientation, such as for global positioning applications, of the smartphone/tablet. Fig. 2e shows a 3-dimentional camera employing the system 105 for calculating the orientation of the camera. Fig. 2f shows a navigation system employing the system 105 for calculating the orientation of the navigation system. It is understood that the applications of Figs. 2a-2f are merely examples of a list of others that is too exhaustive to enumerate.

[21] Fig. 3a shows a block diagram of the relevant features of the MPU 300 with heading and the confidence interval which is also defined as the bounds of the heading error, in accordance with an embodiment of the invention. The MPU 300 is analogous to the MPU 110 of Fig. 1.

[22] In Fig. 3a, the MPU 300 is shown to include an accelerometer processing unit 302, a magnetometer processing unit 304, a gyroscope processing unit 306, Q-Inverse block 330, summer 328, sensor fusion 326, transform 333, and converter 332.

[23] The accelerometer processing unit 302 is shown to include an accelerometer sensor 308 that is responsive to acceleration and generates an accelerometer output 348. The accelerometer sensor 308 is shown to include M A accelerometer, bias, denoted by '¾ Α " and noise, denoted by "nA" that are both introduced in the accelerometer sensing and that are clearly undesirable. The accelerometer processing unit 302 is further shown to have a calibration and gravity extraction block 314 and a comparator 320.

Accelerometer output 348 serves as input to calibration and gravity extraction block 314, which further receives input from Q-Inverse block 330. The calibration and gravity extraction block 314 generates a calibrated accelerometer data 350 in world coordinates (also known herein as the calibrated accelerometer output 350) that is used by the comparator 320. The comparator 320 compares the calibrated accelerometer output 350 to predefined reference in world coordinates (shown as the output 340 in Fig. 3a), and generates the comparator output Delta_A, 342.

[24] The magnetometer processing unit 304 is shown to include a magnetometer 310, a calibration and anomaly rejection block 316, and a comparator 322. The magnetometer 310 is shown to receive a magnetic field and to generate a magnetometer output 352. The magnetometer sensor 310 is shown to include M M magnetometer, bias, denoted by '¾ Μ " and noise, denoted by "Π Μ " that are both introduced in the magnetometer sensing and that are clearly undesirable.

[25] The magnetometer output 352 serves as input to the calibration and anomaly rejection block 316. The calibration and anomaly rejection block 316 also receives input from Q-Inverse block 330 which in turn generates the calibrated magnetometer data 354 in world coordinates. The comparator 322 compares the calibrated magnetometer output 354 to the predefined reference in world coordinates and generates the difference Delta_M, 344, which serves as input to the summer 328. The outputs 344 and 342 are added together by the summer 328 and the result of the summation AM 346 is provided as one of the inputs of the sensor fusion 326.

[26] The gyroscope processing unit 306 is shown to include a gyroscope 312, a gyroscope calibration block 318, and a gyroscope integration block 324. The gyroscope sensor 312 is shown to include MG gyroscope, bias, denoted by "bo" and noise, denoted by "no" that are both introduced in gyroscope sensor and that are clearly undesirable. The gyroscope 312 is shown to receive an angular velocity and generate a gyroscope output 356. The gyroscope output 356 serves as input to the gyroscope calibration block 318, which in turn generates the calibrated gyroscope data 358 (also known herein as the calibrated gyroscope output 358). The output 358 serves as input to the gyroscope integration block 324, which generates gyroscope quaternion data 360 serving as one of the inputs of the sensor fusion 326. Sensor fusion 326 combines the summation AM 346 and gyroscope quaternion data 360 to generate a motion data 327 in quaternion form. Transform 333 converts the quaternion output to heading 363 which is the angle of motion.

[27] Summer 328 adds Delta_A 342 and Delta_M 344, and the summation AM 346 is converted in convert block 332 to generate the heading confidence interval estimate 362. The output of the sensor fusion which is in quaternion form, is also provided as input to the block 330, which in turn generates an output that is provided to the comparator 320 and the block 314.

[28] The outputs of sensors 348, 352, and 356 represent raw sensor data. The angular velocity and the magnetic field are indicative of the motion whereas the acceleration and the magnetic field are indicative of the tilt.

[29] In some embodiments of the invention, each of the units 302, 304, and 306 is implemented in hardware. In some embodiments of the invention, these units are implemented in software except for M A , M M and MG. In still other embodiments of the invention, these units are implemented in both hardware and software.

[30] In some embodiments, the units 302, 304, 306, and the remaining components of Fig. 3a reside on the same integrated circuit (or semiconductor). In some embodiments, any combination of the units 302, 304, 306, and the remaining components of Fig. 3a resides on a different integrated circuit than the remaining components.

[31] An inner feedback loop is formed by the output 342, the summation AM 346, sensor fusion 326, quaternion output, q-inverse 330, and compare 320. An outer feedback loop is formed by the quaternion output, the quaternion inverse output 340, the output 354, the output322, the output 344, summation AM 346, and sensor fusion 326. Accordingly, a dual-loop feedback mechanism, made of the inner feedback loop and the outer feedback loop, is used to detect the imperfection or the mismatch between the gyroscope integration, performed by the block 324, and the accelerometer/magnetometer orientation. The objective of the feedback mechanism is to find and reduce the mismatch.

[32] Each of the blocks 314, 316, and 318 calibrates a respective input. The block 316 detects bias and disturbance. In an embodiment, magnetometer calibration can be implemented as described in U.S. Patent Application No. 13/572,441, filed on

8/10/2012, by Kerry Keal, and entitled "Magnetometer Bias And Anomaly Detector", which is incorporated herein by reference as though set forth in full. [33] Among the three sensors, 308, 310, and 312, the accelerometer data is treated as the reference of the gravity direction (presumably the dominant component of the accelerometer data when the device movement is slow) and the magnetometer as the reference to earth magnetic field direction (assuming no magnetic disturbance).

Theoretically the heading vector, i.e. the vector that points to the magnetic north, can be obtained by projecting the magnetometer data onto the plane that is perpendicular to the gravity vector. In reality, however, since the magnetometer suffers from environmental magnetic disturbance and the accelerometer senses other forms of accelerations together with the gravity when the device is in motion, the magnetometer- accelerometer combination often leads to large heading error. Typical sensor fusion algorithms remedy the disturbance problem by leveraging the gyroscope data, which is immune to magnetic disturbance and linear acceleration interference, to dynamically track the orientation change, while using the magnetometer and accelerometer data as the long term reference to cancel the potential angle drift from the gyroscope imperfection.

[34] The output of the convert 332 is an error boundary. The angle error is a measure indicative of the accuracy of the angle. The accuracy of the angle is a measure of the correctness of the angle over an interval of time. An exemplary accuracy of the angle error is confidence interval.

[35] Fig. 3b shows a plot of the outputs of MPU 300, heading confidence interval with varying magnetic field strength. The output of transform 333 which is representative of an estimate of the angle shown as heading in Figs. 3a and 3b. The convert block 332 receives the angle error from summer 328 and generates a confidence interval value shown in figure 3b as confidence+ and confidence- indicating the error bounds of heading. Fig 3b also shows that variation of confidence interval with varying magnetic field.

[36] The feedback loop-based sensor fusion algorithm of Fig 3a is utilized to estimate the heading from the 3 motion sensors, i.e. the sensors 308, 310, and 312. Fig. 3a shows a dual-loop feedback mechanism employed to detect the mismatch between the gyroscope integration and the accelerometer/magnetometer orientation. The gyroscope integration block 324 generates the angular position (including heading) through the nonlinear integration. The orientation angle from the gyroscope integration block 324 is compared, by the comparators 322 and 320, with the output of the accelerometer and the

magnetometer. There is typically a mismatch between the redundant information from different sensors which has the uncertainty bound of the sensor system. One of the objectives of the feedback mechanism is to find and reduce the mismatch.

[37] The gyroscope sensor 312 measures the 3-axis angular velocity. The sensor has imperfectness on sensitivity and bias drift. After gyroscope integration, these sensor uncertainties transfer to the unbounded orientation error. Therefore, the open loop gyroscope integration cannot be used for orientation estimation for a long time and must be corrected by the accelerometer and magnetometer sensors 308 and 310 in the feedback loop. [38] The 3-axis accelerometer sensor 308 serves to estimate the gravity vector as the inertial reference framework. The sensor has sensitivity, bias and linear acceleration uncertainties. The 3-axis magnetometer sensor 310 serves to estimate the north point vector for heading estimation. The sensor has sensitivity, bias, and uncertainties from magnetic interference.

[39] The uncertainties from accelerometer and magnetometer are handled in the loop (e.g. using gyroscope information to calibrate bias or reject interference), out of loop (e.g. the conventional "figure-8" magnetometer calibration, which only uses magnetometer data to cancel magnetometer bias), or the combination of both. The various embodiments of the invention propose a unified framework to produce confidence interval for all the three architectures.

[40] The angular velocity measurement from the gyroscope sensor is integrated to generate the angular position signal (orientation). This process is a first order nonlinear dynamics, represented as follows:

Equation 1

where co(t) = (0 g x g y g z ) is the quaternion vector made from gyroscope vector and the multiplication is quaternion multiplication.

For the sample data system, the delta Q can be approximated by 1 Equation 2

AQ≡ dq(t) dt =— o(t)q(t) dt

Then, the gyroscope-only quaternion integration is as follows:

Q k + AQ k Equation 3

Q k +→ k Q k - dt

The heading angle can be derived from quaternion through an algebraic formula. Gyroscope Error Model

[41] A simple model to relate the measured angular rate (Om to the real angular rate <yis as follows:

Oin = ω+ b + nr Equation 4

[42] Where b denotes the gyroscope bias and n r the rate noise. The rate noise is assumed to be Gaussian white noise with standard deviation at (for simplicity, assuming the noise level is equal in all three axes). The gyroscope bias b drifts slowly over time, so it is modeled as a random walk process as follows: b' = Equation 5

where b' is the derivative of b. n w is zero-mean Gaussian white noise with level o w . The noise characteristics σ τ and a w of a gyroscope can be measured using the Allan Variance technique.

Error Covariance for Gyroscope-based Quaternion

[43] Based on the gyroscope noise model, an estimate of the error covariance of the integrated quaternion is determined by defining the error state vector as follows:

Equation 6

where <¾?is a 3x1 vector representing the small attitude angle error between the estimated quaternion and the true quaternion. Ab is also a 3x1 vector, representing the bias error between true bias and its estimate. The continuous time error state equation can be derived from equation 1 based on the error state vector: Equation 7

[44] Where 1 X J is the 3x3 skew-symmetric matrix formed by the estimated angular rate. The noise covariance matrix in this continuous time system is Equation 8

For discrete time system, the noise covariance matrix can be approximated by the following (assuming the sampling time At is small):

Equation 9

Equation 10 j Equation 11

!2 w 3 X 3 Equation 12

[45] The state error covariance P can then be iteratively estimated at every gyroscope sampling step k by the following equations (with the same assumption that the sampling time At is small): rll r 12 Equation 13

P =

Pl2 ^22

Equation 14

Pfc+i|fc — FPfc|fcF r + Qd Equation 15

Equation 16

Equation 17

[46] The 3x3 matrix Pn is the error covariance for quaternion estimate, and the 3x3 matrix P22 is the error covariance for gyroscope bias estimate. At each gyroscope sampling step k, the sensor noise covariance Qd is added, so the state error covariance P will increase over time. The square root of the diagonal elements of P11 can be used as the confidence interval (I d) of the gyroscope integration result.

Confidence Interval Update with Out-of-Loop Gyroscope Bias Calibration Algorithm [47] The error covariance (confidence interval) of gyroscope bias is also estimated in the above analysis (i.e., P22). In one embodiment the system uses an out-of-loop run-time gyroscope bias calibration algorithm. The gyroscope bias calibration algorithm could zeros out the gyroscope bias when the device is stationary. When this type of gyroscope bias calibration algorithm takes place, the bias error covariance P22 will be reset to a g 2 At hx3, where a g is the confidence interval (in one sigma form) of the calibrated gyroscope data from the gyroscope bias algorithm.

Confidence Interval for 9-axis Fusion [48] The sensor fusion system uses accelerometers and/or magnetometers to improve the attitude estimate. The accelerometer data is treated as the reference of the gravity direction (presumably the dominant component of the accelerometer data when the device movement is slow) and the magnetometer as the reference to magnetic north direction (assuming no magnetic disturbance). A generic formula for updating the state vector x with the reference data is shown below:

Equation 18

[49] The vector y is the correction term derived from the reference data z and the current state estimate x. There are many possible error metrics to derive the correction term y. In one embodiment the metric is the difference between z and Hx, where Hx is the projection of the state vector to the reference space. In one embodiment the projection is nonlinear and can be represented as a function of x, i.e., H(x). The matrix K is the gain factor, which determines the contribution of the correction term to the state vector update. In one embodiment the gain factor is a fixed value. In another embodiment K is adaptive at every step k. Given the state update equation, the error covariance can also be updated by the reference data:

Equation 19 In one embodiment, if the correction term y is equal to z - Hx, the above equation becomes:

Equation 20

where Vk is the difference between the reference Zk and the current estimate from the state vector. Rk is the covariance of vk. Pkik-i is the error covariance matrix obtained from gyroscope integration. The above equation updates P with the information from the reference data.

[50] As mentioned in previous sections the "reference data" from accelerometer and magnetometer are easily skewed by sensor imperfection and external interference. To handle sensor imperfection, one embodiment would apply in-the-loop calibration algorithm by adding the accelerometer/magnetometer bias and/or scale factor into the state vector x, i.e. increase the dimension of the x vector from 6 to 12 or higher. The external interference can be detected by checking if the difference between the accelerometer/magnetometer data and the estimated value by the state vector (i.e. vk) goes beyond the confidence interval. If the interference is detected, the system discards the current accelerometer/magnetometer data.

Confidence Interval Update with Out-of-Loop Accelerometer and Magnetometer Bias Calibration Algorithms

[51] For systems that uses out-of-loop accelerometer and magnetometer bias calibration algorithms, the confidence interval of system output can be estimated by running Monte Carlo test or particle filtering based on the probability distribution of the input data (indicated by its confidence interval).

Disturbance case

[52] During the magnetic disturbance, the magnetometer sensor cannot provide the heading reference to the system. The heading statistics is purely calculated from the gyroscope sensors.

[53] When there is an no-motion case, the gyroscope bias is updated. With the new gyroscope bias update, the gyroscope bias random walk output can be reset to zero, i.e, the heading error bound will not grow. Only when the gyroscope bias update is stopped, the heading error bound will continue to grow.

[54] When the heading error bound exceeds a specified threshold (for example 10 degrees), the heading accuracy value should be dropped to 0 from 3, to give user a warning about potential large heading error. [55] With a proper "figure 8" motion, the system will adapt to the magnetic disturbance by generating a new magnetometer bias estimation. Then, the system will recover to normal case.

Reduced order sub-optimal uncertainty estimation

[56] Mathematically, the uncertain variables can be modeled by random process with certain statistical properties (such as mean, standard deviation). With these statistical properties, it is possible to analyze (and estimate) the statistics of the uncertain signals in a stochastic dynamical systems.

[57] Now we can treat all the sensor data as random variables with certain statistics (mean and standard deviation). The quaternion output of the gyroscope integration loop is the mean, while all the uncertainties are pushed to the error loops. Then it is sufficient to estimate the statistical property by working on the statistical properties of its error signal.

[58] With this idea, it is possible to decouple and simplify the interaction between multiple states through cascaded error loops. The interaction between multiple states is included into the loop errors.

[59] The 3-D altitude estimation system generates the output of the heading (yaw angle), pitch and roll angles. The estimation loop errors for these 3 states are illustrated in Fig. 3a. The heading statistics can be estimated through the outer loop error, while the pitch and roll statistics can be estimated through the inner loop error. The loop error will provide the uncertainty bound estimation. [60] In the inner feedback loop, the tilt error is compensated by the gravity reference from the accelerometer. As described in section 3, the heading error bound in the inner loop will grow over time if there is no out-of-loop calibration module compensating the gyroscope imperfection.

The outer feedback loop compensates the heading error caused by the magnetometer. However, since the magnetometer is served as reference in the outer feedback loop, the imperfectness of the magnetometer (e.g. bias error, magnetic interference, etc.) cannot be detected and compensated by its own feedback mechanism. Therefore, the magnetometer heading error estimation is classified into 2 cases, as shown in Fig. 4:

1) Magnetic field anomaly case: When the magnetic field disturbance is detected, the magnetometer data is not trustable. Therefore the outer feedback loop is opened. The heading estimate is basically from the inner feedback loop (tilt compensation from accelerometer). Gyroscope integration is the major contributor of the heading error in this case.

2) Normal case: The heading is estimated by the dual feedback loop. The gyroscope integration error is cancelled by the accelerometer and the magnetometer. The heading error mainly comes from the imperfection of accelerometer and magnetometer. [61] The magnetic disturbance can be detected by changes in magnetic field strength and direction. Possible embodiments for magnetic disturbance detection are using high pass filter or comparing the change rates between gyroscope and magnetometer.

[62] Fig. 4 shows a flow chart 400 of the steps performed by the system 300 in relation to magnetic anomaly detection by the block 316. In Fig. 4, at step 402, sensor data is input to the block 316. Next, at 404, if magnetic anomaly is detected, the process goes to the step 408 where the orientation error is bound from the inner feedback loop (with tilt compensation), otherwise, the process goes to the step 406. At the step 406, the orientation error is bound from dual feedback loop (with tilt and heading compensation).

[63] The heading statistics calculation procedure during normal case is depicted in Fig. 5. In Fig. 5, the output of the accelerometer sensor 502 and the magnetometer sensor 504 are shown to be used to calculate the heading uncertainty estimate at 506, which outputs the heading confidence interval 508, analogous to the output 362 of Fig. 3a. The accelerometer sensor 502 is analogous to the sensor 308 and the magnetometer sensor 504 is analogous to the magnetometer sensor 310.

[64] The heading error in normal case comes from two sources: in stationary condition, the heading error comes from the imperfection of the accelerometer and the magnetometer. For example, Fig. 6 shows the potential heading error caused by the accelerometer bias estimation error. The stationary heading error bound can be calculated by the confidence interval from the out-of-loop calibration algorithms, as follows. sin y - sm <p Equation 21

Heading Error = arcTan(- )

cos γ

[65] In dynamic condition, the heading may undergo additional variation due to the interference of linear acceleration. One embodiment to estimate the heading error bound in dynamic condition is by calculating standard deviation of the inner product of the two

3-D vectors formed by accelerometer data and magnetometer data: Equation 22

[66] In stationary condition, Θ should remain constant and the standard deviation is minimum.

[67] Although the description has been described with respect to particular embodiments thereof, these particular embodiments are merely illustrative, and not restrictive.

[68] As used in the description herein and throughout the claims that follow, "a", "an", and "the" includes plural references unless the context clearly dictates otherwise. Also, as used in the description herein and throughout the claims that follow, the meaning of "in" includes "in" and "on" unless the context clearly dictates otherwise.

[69] Thus, while particular embodiments have been described herein, latitudes of modification, various changes, and substitutions are intended in the foregoing disclosures, and it will be appreciated that in some instances some features of particular embodiments will be employed without a corresponding use of other features without departing from the scope and spirit as set forth. Therefore, many modifications may be made to adapt a particular situation or material to the essential scope and spirit.

[70] What we claim is: