28.01.2013 Views

Adaptative high-gain extended Kalman filter and applications

Adaptative high-gain extended Kalman filter and applications

Adaptative high-gain extended Kalman filter and applications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

tel-00559107, version 1 - 24 Jan 2011<br />

double x [3]={ I , I ∗wr , Tl∗ I } , xh [ 4 ] = { 0 , 0 , 0 , 0 } ;<br />

/∗ t h o s e ZEROs w i l l be r e d e f i n e d l a t e r on ∗/<br />

double preInn [2]={pow ( ( block−>z [0] − x [ 0 ] ) , 2 ) , 0 } ;<br />

double Inn =0; /∗ t h i s i s t h e INNOVATION ∗/<br />

double hh=Dt ∗ 0 . 5 , h6=Dt / 6 ;<br />

double dx1 [ 3 ] , dx2 [ 3 ] , dx3 [ 3 ] , dx4 [ 3 ] ;<br />

int neq =3; /∗ number o f ODEs to s o l v e ∗/<br />

/∗ Update o f t h e o utput s i g n a l s t a c k ∗/<br />

for( i =1; iz [ i −1]=block−>z [ i ] ; }<br />

block−>z [ n]=Y;<br />

C.4 Innovation Computational Functions C Code<br />

for( j =1; jz [ n+j ] ;<br />

xh [3]=V;<br />

/∗ BEGIN RK4 ∗/<br />

for( i =0; i

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

Saved successfully!

Ooh no, something went wrong!