1 #ifndef KALMAN_FILTER_H_
2 #define KALMAN_FILTER_H_
4 #include "oXs_config_basic.h"
5 #include "oXs_config_advanced.h"
6 #include "oXs_config_macros.h"
9 // #define DEBUG_KALMAN_TIME // this print (in openXsensor.ino) the time to calculate kalman filter.
17 //void Configure( float zInitial ); // is not used anymore because all data are initilalise in KalmanFilter.h or with #define
18 void Update(float z
, float a
, float* pZ
, float* pV
);
23 // State being tracked
26 float aBias_
; // acceleration
28 // 3x3 State Covariance matrix
39 // those float have been replaced by #define to save flash memory
40 // float zAccelBiasVariance_; // assumed fixed.
41 // float zAccelVariance_; // dynamic acceleration variance
42 // float zVariance_; // z measurement noise variance fixed