diff --git a/sw/airborne/booz/ins/booz2_hf_float.c b/sw/airborne/booz/ins/booz2_hf_float.c index 65e1c26842..b6f5e98ece 100644 --- a/sw/airborne/booz/ins/booz2_hf_float.c +++ b/sw/airborne/booz/ins/booz2_hf_float.c @@ -38,6 +38,7 @@ X_y = [ y ydot ybias ] /* initial covariance diagonal */ #define INIT_PXX 1. +#define INIT_PXX_BIAS 0.1 /* process noise (is the same for x and y)*/ #define ACCEL_NOISE 0.5 #define Q ACCEL_NOISE*DT_HFILTER*DT_HFILTER/2. @@ -47,6 +48,7 @@ X_y = [ y ydot ybias ] #define Rpos 5. #define Rspeed 1. +/* filter states */ float b2_hff_x; float b2_hff_xbias; float b2_hff_xdot; @@ -57,6 +59,7 @@ float b2_hff_ybias; float b2_hff_ydot; float b2_hff_ydotdot; +/* filter covariance matrices */ float b2_hff_xP[B2_HFF_STATE_SIZE][B2_HFF_STATE_SIZE]; float b2_hff_yP[B2_HFF_STATE_SIZE][B2_HFF_STATE_SIZE]; @@ -91,7 +94,10 @@ static inline void b2_hff_init_x(float init_x, float init_xdot, float init_xbias for (i=0; i