50 #include <mathlib/mathlib.h> 90 void init(
float initial0,
float initial1,
float covInit00,
float covInit11);
98 void predict(
float dt,
float acc,
float acc_unc);
106 bool update(
float meas,
float measUnc);
119 void getState(
float &state0,
float &state1);
matrix::Vector< float, 2 > _x
void predict(float dt, float acc, float acc_unc)
Predict the state with an external acceleration estimate.
virtual ~KalmanFilter()
Default desctructor.
void init(matrix::Vector< float, 2 > &initial, matrix::Matrix< float, 2, 2 > &covInit)
Initialize filter state.
KalmanFilter()
Default constructor, state not initialized.
bool update(float meas, float measUnc)
Update the state estimate with a measurement.
void getInnovations(float &innov, float &innovCov)
Get measurement innovation and covariance of last update call.
matrix::Matrix< float, 2, 2 > _covariance
void getState(matrix::Vector< float, 2 > &state)
Get the current filter state.
void getCovariance(matrix::Matrix< float, 2, 2 > &covariance)
Get state covariance.
A simple matrix template library.