mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 22:13:34 +08:00
ekf2_test: test yaw variance after reset
This commit is contained in:
@@ -441,6 +441,7 @@ public:
|
||||
|
||||
// rotate quaternion covariances into variances for an equivalent rotation vector
|
||||
Vector3f calcRotVecVariances() const;
|
||||
float getYawVar() const;
|
||||
|
||||
// set minimum continuous period without GPS fail required to mark a healthy GPS status
|
||||
void set_min_required_gps_health_time(uint32_t time_us) { _min_gps_health_time_us = time_us; }
|
||||
|
||||
@@ -889,6 +889,15 @@ Vector3f Ekf::calcRotVecVariances() const
|
||||
return rot_var;
|
||||
}
|
||||
|
||||
float Ekf::getYawVar() const
|
||||
{
|
||||
Vector24f H_YAW;
|
||||
float yaw_var = 0.f;
|
||||
computeYawInnovVarAndH(0.f, yaw_var, H_YAW);
|
||||
|
||||
return yaw_var;
|
||||
}
|
||||
|
||||
// initialise the quaternion covariances using rotation vector variances
|
||||
// do not call before quaternion states are initialised
|
||||
void Ekf::initialiseQuatCovariances(Vector3f &rot_vec_var)
|
||||
|
||||
Reference in New Issue
Block a user