EKF: Add functions to get position and velocity state variance

This commit is contained in:
Paul Riseborough 2016-03-07 20:22:06 +11:00
parent 32b03819ef
commit 2c2850c0ce

View File

@ -103,6 +103,20 @@ void Ekf::initialiseCovariance()
}
void Ekf::get_pos_var(Vector3f &pos_var)
{
pos_var(0) = P[6][6];
pos_var(1) = P[7][7];
pos_var(2) = P[8][8];
}
void Ekf::get_vel_var(Vector3f &vel_var)
{
vel_var(0) = P[3][3];
vel_var(1) = P[4][4];
vel_var(2) = P[5][5];
}
void Ekf::predictCovariance()
{
// assign intermediate state variables