21.01.2015 Views

State estimation with Kalman Filter

State estimation with Kalman Filter

State estimation with Kalman Filter

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

F. Haugen: Kompendium for Kyb. 2 ved Høgskolen i Oslo 111<br />

• Auto-covariance matrix (for lag zero) of the <strong>estimation</strong> error of the<br />

predicted estimate:<br />

n<br />

o<br />

P d = R exd (0) = E (x − m xd )(x − m xd ) T (8.40)<br />

• The transition matrix A of a linearized model of the original<br />

nonlinear model (8.14) calculated <strong>with</strong> the most recent state<br />

estimate, which is assumed to be the corrected estimate x c (k):<br />

A = ∂f(·)<br />

¯<br />

∂x<br />

¯xc (k),u(k)<br />

(8.41)<br />

• The measurement gain matrix C of a linearized model of the original<br />

nonlinear model (8.15) calculated <strong>with</strong> the most recent state<br />

estimate:<br />

C = ∂g(·)<br />

¯<br />

(8.42)<br />

∂x<br />

¯xc(k),u(k)<br />

However, it is very common that C = g(), and in these cases no<br />

linearization is necessary.<br />

The <strong>Kalman</strong> <strong>Filter</strong> gain is calculated as follows (these calculations are<br />

repeated each program cycle):<br />

<strong>Kalman</strong> <strong>Filter</strong> gain:<br />

1. This step is the initial step, and the operations here are executed<br />

only once. The initial value P p (0) can be set to some guessed value<br />

(matrix), e.g. to the identity matrix (of proper dimension).<br />

2. Calculation of the <strong>Kalman</strong> Gain:<br />

<strong>Kalman</strong> <strong>Filter</strong> gain:<br />

K(k) =P p (k)C T [CP p (k)C T + R] −1 (8.43)<br />

3. Calculation of auto-covariance of corrected state estimate error:<br />

Auto-covariance of corrected state estimate error:<br />

P c (k) =[I − K(k)C] P p (k) (8.44)<br />

4. Calculation of auto-covariance of the next time step of predicted state<br />

estimate error:<br />

Auto-covariance of predicted state estimate error:<br />

P p (k +1)=AP c (k)A T + GQG T (8.45)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!