mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 03:03:33 +08:00
EKF: Add functions to get position and velocity state variance
This commit is contained in:
@@ -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()
|
void Ekf::predictCovariance()
|
||||||
{
|
{
|
||||||
// assign intermediate state variables
|
// assign intermediate state variables
|
||||||
|
|||||||
Reference in New Issue
Block a user