overview of kalman filter theory and navigation ... · overview of kalman filter theory and ......

106
Overview of Kalman Filter Theory and Navigation Applications Day 3 Michael L. Carroll Feb 25, 2004 c 2003 by Michael L. Carroll

Upload: voque

Post on 11-Apr-2018

256 views

Category:

Documents


8 download

TRANSCRIPT

Page 1: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Overview of Kalman Filter Theory and

Navigation Applications

Day 3

Michael L. Carroll

Feb 25, 2004

c©2003 by Michael L. Carroll

Page 2: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Day 3: Practical Kalman Filtering, Strapdown Navigationand Inertial Error DynamicsSegments

• Practical Kalman Filtering: Some Numerical Considerations

• The Navigation Problem and Reference Frames

• Inertial Error Dynamics

• The Basic 9-State Kalman Filter

• Challenges of INS Filters

1

Page 3: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Day 3, Segment 1Some Practical Considerations (Numerical)Topics

• Kalman Filter Theory vs. Reality

• Numerical Stability

• Round-Off Errors

• Matrix Inversion

• UD Factorization

2

Page 4: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Kalman Filter Theory vs. Reality

• Kalman theory based on multiple assumptions

– All states are modeled correctly

– Noise parameters are accurately known

– Initial values are appropriate

– Process and measurement noise are both Gaussian

– Process noise and measurement noise are uncorrelated

– Measurements are taken at regularly scheduled intervals

3

Page 5: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Kalman Filter Theory vs. Reality

• How do you select appropriate sensors for the problem at

hand?

• Some obvious general rules:

– the lower the sensor noise characteristics, the more accu-

rate the estimates (narrow sensor noise variance)

– the more the merrier, i.e., the more sensors the better

– maximize the number of directly observable states

4

Page 6: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Kalman Filter Theory vs. Reality

• Some less obvious general rules:

– short-term / long-term complementarity (e.g, GPS vs.

INS)

– frequency response of sensor should match that of system

– noise spectrum of sensor should be maximally disjoint

from that of system

5

Page 7: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

System Frequency Response Sensor Frequency Response

System Frequency Response

Poor Choice

Good Choice

Sensor Frequency Response

6

Page 8: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Kalman Filter Theory vs. Reality

• Choose sensors to match states.

E.g., consider the state model[x1x2

]=

[00

]

with the measurement model

z =[1 0

] [x1x2

]+ v

Here x1 is observable but x2 is not.

7

Page 9: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Kalman Filter Theory vs. Reality: Sensor Selection

• Examine the H matrix that you would use with this sensor!

• If it renders some states unobservable, then consider adding

additional sensors for those states, or replacing this sensor

with one that is more favorable.

8

Page 10: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Filter Divergence

• Kinds of Divergence

• Causes and Remedies

9

Page 11: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Kinds of Divergence

• Mean estimation error is supposed to converge to 0

– xk = xk(+)− xk

– E [xk] → 0

– Estimate is unbiased: E [xk] = xk

• Covariance matrix for estimation error is same as state esti-

mation error covariance matrix: Pk(+) = E[xk(+)xTk (+)

]

10

Page 12: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Kinds of Divergence

• For optimal filter, P will indicate convergence or divergence.

– One common form of divergence due to round-off will

send P to zero

• For suboptimal filters, P will not necessarily indicate diver-

gence

– P may seem to indicate nominal steady-state values and

yet the state estimate may go diverge from the true value

11

Page 13: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Error Covariance Envelope

Sample Estimation Trajectories

12

Page 14: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Kinds of Divergence

• Going to sleep: error covariance becomes so small that mea-

surements are no longer believed by the filter

• Loss of symmetry in P

• Loss of positive definiteness: negative numbers on the diag-

onal!

13

Page 15: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Numerical Stability

• System stability: Bounded input results in bounded output

• Numerical stability: small errors at each computation step

do not grow without bound

• Matrix Conditioning

14

Page 16: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Matrix Conditioning

• Ill-Conditioned vs. Well-Conditioned

• Condition number of matrix:

cond(M) =λmax

λmin

where λmax is maximum eigenvalue of M , while λmax is the

minimum eigenvalue of M .

15

Page 17: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Matrix Conditioning

• If cond(M) ≈ 1, then M is well-conditioned for matrix inver-

sion

• If cond(M) >> 1, then M is ill-conditioned for inversion

16

Page 18: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Round-Off Errors

• Computer round-off in floating point arithmetic

• Unit round-off value is largest number ε such that 1 + ε = 1

• In Matlab, the global symbol ”eps” stores the unit round-off

value

17

Page 19: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Round-Off Errors

• Round-off errors generally plague the classical covariance up-

date algorithm

Pk(+) = [I −KkHk]Pk(−)

• Alternative, called the Joseph form, is more robust:

Pk(+) = [I −KkHk]Pk(−) [I −KkHk]T +KkRkK

Tk

18

Page 20: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

This form in turn leads to the De Vries mechanization of the

Kalman gain equation. To see this, first expand the Joseph

form (omitting subscripts for clarity):

P (+) = P (−)−KHP (−)− P (−)HTKT +KHP (−)HTKT +KRKT.

19

Page 21: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Define

(1) F = PHT

and

(2) D = HF +R.

We note that D is symmetric, because

DT = [HF +R]T

= [HPHT +R]T

= [HPHT]T +RT

= [HT]TPTHT +RT

= HPHT +R (because P and R are symmetric)

= HF +R

= D.

20

Page 22: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

The gain in standard Kalman gain equation

Kk = Pk(−)HTk

[HkPk(−)HT

k +Rk]−1

can be written as

K = FD−1.

Using Eqs. (1) and (2), we compute

P (+) = P (−)−KFT − FKT +KDKT

= P (−)−K

[FT − DKT

2

]−

[F − KD

2

]KT.

Letting G = F − KD

2, we obtain

(3) P (+) = P (−)−GKT −[GKT

]T.

21

Page 23: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

The De Vries mechanization implements Eq. (3) by subtracting

the ijth element of GKT from both the ijth and jith elements of

P (−). The De Vries form of the covariance update equation is

valid for any arbitrary gain matrix K, not just the optimal gains

computed from Eqs. (1) and (2).

22

Page 24: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Matrix Inversion

• Matrix inversion is always risky due to potential ill-conditioning

• One way to avoid this is to process measurements sequen-

tially as scalars

• Or at least as low-dimensional matrices

23

Page 25: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

UD Factorization

• Based on Cholesky Decomposition

• Unit Triangular Matrices: U has 1’s on the diagonal and all

0’s below the diagonal. E.g.,

U =

1 5 70 1 30 0 1

24

Page 26: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

UD Factorization

• Factor HPHT+R as UDUT, where U is unit upper triangular

and D is diagonal.

• This then allows us to ”invert” HPHT + R by solving the

equation unit upper triangular equation UDUTX = H for the

matrix X, which will yield X =[HPHT +R

]−1H

• This last expression is used on the covariance update equa-

tion in KH

25

Page 27: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Exercises

1. Let v = [1 − 2]T. Compute the positive definite, symmetrix

matrix M = vvT

2. Use the following algorithm (Grewal & Andrews) to factor M

into UDUT form:

26

Page 28: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

for j=m:-1:1

for i=j:-1:1

covar=P(i,j);

for k=j+1:m

covar=covar-U(i,k)*D(k,k)*U(j,k);

end

if i==j

D(j,j)=covar;

U(j,j)=1;

else

U(i,j)=covar/D(j,j);

end

end

end

27

Page 29: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Day 3, Segment 2

The Navigation Problem and Reference Frames

Topics

• Basic Navigation Problem

• Earth Referenced Navigation

• Coordinate Frame Conversion

• Basic Strapdown Navigation Equations

28

Page 30: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Basic Navigation Problem

• Where am I?

• Where am I headed?

• How fast am I going?

29

Page 31: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Basic Navigation Problem

• What’s my position?

• What’s my heading and attitude?

• What’s my velocity?

30

Page 32: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Solution in Inertial Space

• In inertial space, it’s no problem!

• Just integrate the acceleration twice to get velocity and po-

sition.

• And integrate the angular rate once to get attitude.

v(T ) = v(0) +∫ T

0

d2R

dt2dt

31

Page 33: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Solution in Inertial Space

• Solution easy in inertial space because ...

– inertial instruments sense acceleration and rotational rate

with respect to inertial coordinate frame

– inertial frame attached to sensor platform

• But we don’t necessarily want the answer to our questions

expressed in terms of inertial coordinates!

32

Page 34: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Earth Referenced Navigation

• Terrestial navigation seeks to answer nav questions with re-

spect to earth

• Global earth reference

• Local or relative navigation

33

Page 35: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Coordinate Frames

• Inertial

• Earth Fixed

• Local Level

• Body

34

Page 36: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Coordinate Frames

• Technically speaking, all frames are earth-centered

• Practically speaking, we think of the Body frame as centered

in the body of the vehicle (usually at center of gravity).

• Local Level is thought to be located at surface of earth

directly beneath the vehicle.

35

Page 37: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Inertial Reference Frames

• Non-Rotating

• Non-Accelerating

• Fixed or moving uniformly with respect to another inertial

frame (fixed stars)

36

Page 38: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Inertial Reference Frames

• Nav problem ”easy” in inertial frames

• Integrate accelerometer outputs once to get inertial velocity;

integrate velocity to get position.

• Same with attitude, but only one integration required (usu-

ally).

• Would still have to contend with instrument imperfections.

37

Page 39: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Inertial Reference Frame Integrations

(4) r = asf + other external forces

(5) v = r =∫ T

0asfdt+

∫ T

0(other external forces)dt

(6) r =∫ T

0vdt

38

Page 40: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Earth Fixed = ECEF = Earth Centered Earth Fixed

• Rotating frame, i.e., non-inertial

• Cartesian (X,Y, Z in meters)

• Spherical (latitude φ, longitude λ, altitude h)

– geodetic

39

Page 41: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Local Level

• Tangent to earth’s surface but translated to center of earth.

• Vertical Z-axis is normal to earth’s surface

• X,Y -axes are level

• Several kinds: Y north-slaved or wander azimuth

• Y makes wander angle α with respect to true north (ENU=East,

North, Up).

40

Page 42: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

41

Page 43: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Body Frame

• Attached to vehicle

• For aircraft:

– X out the nose

– Y out the right wing

– Z down

42

Page 44: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Coordinate Frame Conversion

• All frames are earth-centered, hence differ only by rotation

• Rotation represented by direction cosine matrices (DCM)

• CBA = DCM transformation from frame A to frame B

43

Page 45: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Coordinate Frame Conversion

• ”Direction Cosine” comes from dot product:

〈x, y〉 = x · y = ‖x‖ ‖y‖ cos θxy

where θxy is the angle between the two vectors x and y.

• If x and y are unit vectors, then ‖x‖ = ‖y‖ = 1 and we have:

〈x, y〉 = x · y = cos θxy

44

Page 46: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Coordinate Frame Conversion

• If U = u1, u2, u3 and V = v1, v2, v3 are two sets of or-

thonormal basis vectors, then the DCM relating one frame

to the other is given by:

CVU =

〈u1, v1〉 〈u1, v2〉 〈u1, v3〉〈u2, v1〉 〈u2, v1〉 〈u2, v3〉〈u3, v1〉 〈u3, v2〉 〈u3, v3〉

=

cos θ11 cos θ12 cos θ13cos θ21 cos θ22 cos θ23cos θ31 cos θ32 cos θ33

45

Page 47: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Coordinate Frame Conversion

• DCMs are orthogonal matrices ⇒[CBA

]−1=

[CBA

]T

• Third row (or column) is vector cross product of other two

⇒ only six independent parameters

46

Page 48: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Coordinate Frame Conversion: Most important DCMs

• Body to Local Level: CLB

– sometimes called Body to Nav and notated CNB

– yields attitude info (Euler angles for roll, pitch, yaw)

• Local Level to Earth: CEL

– yields position info and used to transform earth rate to

local level

47

Page 49: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Coordinate Frame Conversion: Most important DCMs

• Visualize CEL ’s determination of position as follows:

– As vehicle moves, local level frame changes its orienation

with respect to earth’s center in order to maintain local

level with respect to earth’s surface

– If you think of local level frame as attached to earth’s

surface, you get distracted by the displacement of the

frame

– If you move local level frame to center of earth, the dis-

placement disappears and all that remains is the rotations

48

Page 50: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

49

Page 51: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation: Strapdown vs. Gimbaled

• Gimbaled INS:

– Gyro stabilized platform

– Gimbal assembly and torque motors

– Resolvers, slip rings, bearings, etc. to control platform

– Goal: Maintain stable, locally level or inertial reference

frame

50

Page 52: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation: Strapdown vs. Gimbaled

• Gimbaled INS Issues

– Reliability and Cost: Lots of moving parts!

– Body rate and acceleration information not directly avail-

able

– Rate signals are generally noisy and have low bandwidth

51

Page 53: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation: Strapdown vs. Gimbaled

• Strapdown INS:

– Inertial instruments strapped to body frame

– Requires local level accelerations to be computed using

direction cosine matrix CLB

– CLB derived from gyro-sensed body rates

– Strapdown systems can be implemented with either rate

gyros or attitude gyros

52

Page 54: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation: Strapdown vs. Gimbaled

• Strapdown INS Advantages

– Immediate detection of body rates and accelerations

– Fewer moving parts

– Potential redundancy advantages

• Gimbaled systems are nearly obsolete

53

Page 55: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

54

Page 56: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Basic Strapdown Navigation Equations

• Need to compute attitude, velocity, and position

• I.e., need to compute CLB and CEL

• These DCMs are dynamic quantities

• CLB determines attitude and can be rapidly varying

• CEL determines position and is slowly varying (relative to at-

titude dynamics)

55

Page 57: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

• Three differential equations

– Equation for body to local level transformation CLB

– Equation for velocity (uses CLB)

– Equation for local level to earth for position DCM CEL

56

Page 58: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

• Two Algebraic Equations

– Equation for converting velocity to transport rate (to be

explained)

– Equation for converting earth rate to local level coordi-

nates

57

Page 59: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

The Three Differential Equations

(7) CLB = CLBΩBIB −

(ΩLIE + ΩL

EL

)CLB

(8) vL = CLBaBsf + g′ −

(2ΩL

IE + ΩLEL

)vL

(9) CEL = CELΩLEL

58

Page 60: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

The Two Algebraic Equations

(10) ωEL =1

ruLr × vL

(11) ωLIE =[CEL

]TωEIE

59

Page 61: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

The CLB Equation (7)

CLB = CLBΩBIB −

(ΩLIE + ΩL

EL

)CLB

• All the Ω matrices represent rotation vector cross products

in skew-symmetric matrix format

– ΩBIB is rotational rate of aircraft in body coordinates

– ΩLIE is earth rate in local level coordinates

– ΩLEL is transport rate in local level coordinates

60

Page 62: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations: Detour into Cross Product

Matrices

• The cross prouct of ω =

ω1ω2ω3

with any other vector v is the

same as multiplying v on the left by Ω =

0 ω3 −ω2−ω3 0 ω1ω2 −ω1 0

• ω × v = Ωv

61

Page 63: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

The CLB Equation (7)

CLB = CLBΩBIB −

(ΩLIE + ΩL

EL

)CLB

• Transport rate is the rotational rate of the aircraft due to

motion over the surface of the earth. Is a function of velocity.

• ΩBIB is total inertial angular rate sensed by gyros and includes

effects of transport and earth rates.

• Hence transport and earth rate effects have to be subtracted

off.

62

Page 64: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

The Strapdown Velocity Equation (8)

vL = CLBaBsf + g′ −

(2ΩL

IE + ΩLEL

)vL

• Sometimes referred to as the velocity rate equation

• aBsf is specific force sensed by accelerometers in body coordi-

nates (because the accels are strapped to the body – hence

the term strapdown)

63

Page 65: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

The Transport Rate Equation (9)

CEL = CELΩLEL

• Connected to velocity rate equation by the first algebraic

equation (10):

ωEL =1

ruLr × vL

• Eq. (9) Sometimes referred to as position rate equation,

because dcmLE directly implies the vehicle position

65

Page 66: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

Position Rate / Transport Rate Equations (Geographic)

• North transport rate:

(12) ρN =ve

Re

[1− h

Re− e sin2 φ

]

• East transport rate:

(13) ρE = − veRe

[1− h

Re− e

(1− 3cos2 φ

)]

where e is ellipticity (approx.1

298) and Re is mean equatorial

earth radius

66

Page 67: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

Position Rate / Transport Rate Equations (Geographic)

• Latitude Rate:

(14) φ = −ρe

• Longitude Rate:

(15) λ = ρn secφ

67

Page 68: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

• Geographic (north-slaved) mechanization has singularities at

poles

• Two other approaches to local level coordinates:

– Wander azimuth: vertical component of transport rate

ρz= vertical component of earth rate

– Free Azimuth: vertical component of transport rate ρz =

0

68

Page 69: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

Position Rate / Transport Rate Equations (Wander and Free

Azimuth)

• X Transport Rate:

(16) ρx = − vyRe

[1− h

Re− e

(1− 3d222 − d221

)]− vx

Re(2d21d22) e

• Y Transport Rate:

(17) ρy =vx

Re

[1− h

Re− e

(1− 3d221 − d222

)]+vy

Re(2d21d22) e

69

Page 70: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Navigation Equations

Position Rate / Transport Rate Equations (Wander and Free

Azimuth)

• Azimuth Rate:

ρz =

−Ωed23, if free azimuth;

0, if wander azimuth

• In equations above, the matrix[dij

]is the direction cosine

matrix CEL from local level (L) frame to earth centered earth

fixed (E) frame.

70

Page 71: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Exercises

1. Compute direction cosine matrix CVU , where U = (1,0,0), (0,1,0), (0,0,1)and V = (−1,0,0), (0,1,0), (0,0,−1)

2. Suppose you are starting at the equator and travelling due

north, and your velocity is 5 m/sec. Compute the transport rates

ρn and ρe associated with this velocity and heading. You may

use the following constants: Ωe = 7.2921151467×10−5 rad/sec

and Re = 6,378,137 meters

71

Page 72: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Day 3, Segment 2 (Continued)

Inertial Error Dynamics

Topics

• Imperfect Inertial Instruments

• From Strapdown Equations to Error Equations

• Initialization: Alignment

72

Page 73: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Imperfect Inertial Instruments

• Accelerometers and Gyros have inherent imperfections

• Bias, scale factor, g2 terms, noise,

• Inertial sensor clusters also have errors: misalignments

• Many error sources are calibrated out using rate tables during

ATP

• Residual effects will influence strapdown nav equations

73

Page 74: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Imperfect Inertial Instruments

• Strapdown nav equations very sensitive to gyro errors

• Gyro biases yield erroneous CLB matrix which in turn causes

erroneous accelerations to be computed in local level frame

• Thus, gyro errors affect not only attitude, but also position

and velocity

74

Page 75: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Simple Inertial Error Models

• Gyros

εωx = ∆Bgx + ∆Kgxωx + θgxyωy + θgxzωz

εωy = ∆Bgy + ∆Kgyωy + θgyzωz + θgyxωx

εωz = ∆Bgz + ∆Kgzωz + θgzxωx + θgzyωy

where ∆Bgi is the ith gyro bias, ∆Kgi the ith gyro scale

factor, and θgij is the misalignment of the ith gyro axis toward

the jth gyro axis.

75

Page 76: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Simple Inertial Error Models

• Accelerometers

εax = ∆Bax + ∆Kaxax + θaxyay + θaxzaz

εay = ∆Bay + ∆Kayay + θayzaz + θayxax

εaz = ∆Baz + ∆Kazaz + θazxax + θazyay

where ∆Bai is the ith accelerometer bias, ∆Kai the ith ac-

celerometer scale factor, and θaij is the misalignment of the

ith accelerometer axis toward the jth accelerometer axis.

76

Page 77: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Bias Models

• Bias in both types of instruments can be further broken down

into several components:

– fixed bias – constant from turn-on to turn-on – should be

calibrated out

– bias stability – varies from turn-on to turn-on – can’t

be calibrated out, but can be characterized in terms of

variance – can model as random constant

– bias drift – usually modeled as random walk

77

Page 78: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Scale Factor Models

• Scale factor can also be modeled as a sum of three compo-

nents

• Often in nav filters, scale factor residual is modeled as a

random constant

• Important to keep in mind that the contribution of scale

factor error is a function of input (rate or acceleration)

78

Page 79: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Higher Order Models

• In expanding the output error as a Taylor series function ofinput, bias, scale factor, and misalignment show up as zeroand first order terms.

• Higher order terms are also present, especially second orderterms.

• In some calibration and alignment filters, such higher ordereffects are modelled

• SNU-84-1 includes error budgets associated with all the com-bined, higher order effects.

79

Page 80: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

From Strapdown Equations to Error Equations

• Nav equations require perfect inertial instruments

• Instruments are not perfect

• Inertial instrument error sources (bias, scale factor errors,

etc.) generate erroneous rate and acceleration inputs to the

nav equations

• Need to figure out the effects on the outputs of these equa-

tions

80

Page 81: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Error Equations

• Nature of Errors

• Error Operator

• Error Equations

81

Page 82: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Error Equations: Nature of Errors

• Errors propagate according to derived equations

• Errors are generally small, so approximating assumptions help

simplify the math

– linearize otherwise non-linear dynamics

– small angle assumptions: sin θ ≈ θ

82

Page 83: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Error Equations: Error Operator

If A is any quantity, we define error operator as follows:

(18) δA = A−A,

where A is the true quantity of interest and A is an apparent

quantity. The latter could be a measured value, and estimated

value, or some computed value. This means that

A = A+ δA

i.e., the apparent value is the true value plus some error.

83

Page 84: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Error Equations: Error Operator

Error operator satisfies:

(19) δ(AB) = δA ·B +A · δB(Just like differentiation)

84

Page 85: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Error Equations

Applying these to the three differential equations, yields three

error equations:

(20)

δCLB = δCLBΩBIB+CLBδΩ

BIB−

(δΩL

IE + δΩLEL

)CLB−

(ΩLIE + ΩL

EL

)δCLB

(21)

δvL = δCLBaBsf+CLBδa

Bsfg

′−(2δΩL

IE + δΩLEL

)vL−

(2ΩL

IE + ΩLEL

)δvL

(22) δCEL = δCELΩLEL + CEL δΩ

LEL

85

Page 86: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Introducing Small Angular Rotations for Tilt and Position

• By introducing φL =[φLx φLy ψLz

]T, and a small angular posi-

tion angle error e =[eLx eLy eLz

]T, the attitude error equation

(20) can be rewritten as:

(23) φL = −(ΩLIE + ΩL

EL

)φL − CLBδω

BIB + ΩL

IEeL + δωLEL

where δωLEL =1

Re

(uLR × δvL

)− δh

R2e

(uLR × vL

)+ δρRu

LR

86

Page 87: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Introducing Small Angular Rotations for Tilt and Position

• Similarly, the velocity equation can be rewritten:

δvL = CLBδaBsf + aBsf × φL −

(2ωLIE + ωLEL

)× δvL +

−(δωLEL − 2eL × ωLIE

)× vL +

2gδh

ReuLR + δgL

while the equation for the position angle error eL itself is

(24) eL = −ΩLELe

L + δωLEL

87

Page 88: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Further Simplifications Using Telescope Pointing Angle Error

• ψL = φL − eL

• Leads to:

(25) ∆RL = δvL −ΩLEL∆RL

and

δvL = CLBδaBsf + aBsf × ψL − g

Re∆RLH −

(2ωLIE + ωLEL

)× δvL +

−(δωLEL − 2eL × ωLIE

)× vL +

2gδh

ReuLR + δgL(26)

88

Page 89: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Further Simplifications Using Telescope Pointing Angle Error

• Finally, the equations for the telescope pointing angle errors

are:

(27) ψL = −(ΩLIE + ΩL

EL

)ψL − CLBδω

BIB

89

Page 90: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Error Equations

• Three error equations yield three vector quantities of interest

– position error vector (3) ∆R derived from δCEL

– velocity error vector (3) ∆V L (or δvL)

– attitude error vector (3) φx, φy, ψz from δCLB

90

Page 91: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Strapdown Equations

• See Matlab / Simulink Models

– Strapdown Navigation Equations: stravnav.mdl

– Strapdown Navigation Error Equations: straperr.mdl

91

Page 92: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Initialization: Alignment

• Coarse Leveling

– Gimbal system limited by platform torquing rates

– Strapdown systems have no real rate limits

– Time average of accel outputs scaled by 1/g

– Yields third row of DCM to begin fine alignment

• Fine Alignment

• Alignment filter aids in further leveling

92

Page 93: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Day 3, Segment 3

The Basic 9-State Kalman Filter

Topics

• Whole State Filters vs. Error State Filters

• The Canonical Nine States

• INS Error State Dynamics and Transition Matrix

93

Page 94: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Whole State vs. Error State Filters

• Whole state filters ...

– model whole position, velocity, attitude

– deal with large and rapidly varying quantities

– are highly non-linear

94

Page 95: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Whole State vs. Error State Filters

• Error state filters ...

– remove some of the linearities by differencing outputs from

aiding sensors with corresponding quantities from INS

– exhibit slowly varying dynamics: easier to linearize

– have smaller quantities that allow us to take advantage of

small angle assmptions

95

Page 96: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

The Canonical Nine States

• 3 position errors: ∆Rx,∆Ry,∆Rz in local level coordinates

• 3 velocity errors: ∆Vx,∆Vy,∆Vz in local level coordinates

• 3 attitude errors: φx, φy, ψz

– φx, φy known as tilt errors

– ψz known as azimuth error

96

Page 97: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Exercises

1. Rewrite equation (20)

δCLB = δCLBΩBIB+CLBδΩ

BIB−

(δΩL

IE + δΩLEL

)CLB−

(ΩLIE + ΩL

EL

)δCLB

to show the terms in the canonical order with position error,

velocity error, and then attitude error.

2. Determine the 7th row of the system matrix F for the canoni-

cal 9-state error model. Use the cross-product operator matrix as

required, e.g., ΩLIE =

[ωLIE×

]=

0[ωLIE

]z

−[ωLIE

]y

−[ωLIE

]z

0[ωLIE

]x[

ωLIE

]y

−[ωLIE

]x

0

.

Introduce simplifying notation! E.g., set α = ωLIE Hint: Use

telescope pointint angle error equation (27)

97

Page 98: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Day 3, Segment 4

Challenges of INS Filters

Topics

• Nine States Are Not Enough

• Not Constant Coefficient

• Non-Linearities: Extended Kalman Filter

• Observability

98

Page 99: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Nine States Are Not Enough

• The canoncial 9 states only characterize the inertial error

dynamics

• They treat of the inner coupling between inertial error sources

• However, they don’t help characterize dynamics of aiding

sensor errors

99

Page 100: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Nine States Are Not Enough

• They don’t help estimate aiding states such as Doppler bias

and boresight errors

• Or GPS receiver clock errors

• They also don’t help us to estimate inertial instrument drifts

such as bias drift or scale factor errors

100

Page 101: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Not Constant Coefficient

• Notice that the F matrix that has emerged (implicitly) from

the 9-state inertial error dynamics is not time invariant

• It is highly dependent on trajectory data such as acceleration

and angular rate profiles

• These are functions of time

• Position dependent items such as latitude are also involved

101

Page 102: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Non-Linearities: Extended Kalman Filter

• When non-linearities are present, the F matrix emerges as

Jacobian of non-linear system function f : F (t) =∂f

∂x

• If Jacobian is evaluated at a nominal value of the trajectory,

we call this a linearized filter

• If Jacobian is evaluated at the previous optimal estimate, we

call it an Extended Kalman filter

102

Page 103: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Observability

• Structural observability is concerned with how H maps mea-

surements into states

• Will making measurements as governed by H actually enable

us to estimate all of the states in the state vector?

103

Page 104: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Observability

• Observability means there is a linear path from the measure-

ments to states

• Structural observability determined by Φ and H:

If H is 1 × n, where n is the size of the state vector, then the

state x0 is said to be observable from n scalar measurements

z0, . . . , zn−1 if the block matrix[HT ΦTHT · · · (ΦT)n−1HT

]

is of rank n

104

Page 105: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Observability

• Observability challenge for INS filters is usually a matter of

choosing right navaids

• And also choosing the right measurement scheduling

• Also, certain kinds of divergence can be the result of poor

observability (more on this later)

105

Page 106: Overview of Kalman Filter Theory and Navigation ... · Overview of Kalman Filter Theory and ... Kalman Filter Theory vs. Reality • Kalman theory based on multiple assumptions

Exercises

• Use Eq. (25)

∆RL = δvL −ΩLEL∆RL,

write the first three rows of the system dynamics matrix F

in the continuous Kalman formulation:

x = Fx+ w

106