mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 12:20:35 +08:00
ekf: disable xy accel bias learning before takeoff (#818)
* ekf: disable xy accel bias learning before takeoff As those biases are usually poorly observable before takeoff because they are almost perpendicular to the gravity vector, learning is often driven by noise and numerical issues. This results in incorrect bias learning before takeoff when the drone is static on ground for a long period of time. * ekf: update unit test and change indicator
This commit is contained in:
committed by
GitHub
parent
9788c3bdf2
commit
37d9cef262
@@ -103,7 +103,7 @@ class EkfInitializationTest : public ::testing::Test {
|
||||
EXPECT_TRUE(pos_var(1) > pos_variance_limit) << "pos_var(1)" << pos_var(1);
|
||||
EXPECT_TRUE(pos_var(2) > pos_variance_limit) << "pos_var(2)" << pos_var(2);
|
||||
|
||||
const float vel_variance_limit = 0.4f;
|
||||
const float vel_variance_limit = 0.3f;
|
||||
EXPECT_TRUE(vel_var(0) > vel_variance_limit) << "vel_var(0)" << vel_var(0);
|
||||
EXPECT_TRUE(vel_var(1) > vel_variance_limit) << "vel_var(1)" << vel_var(1);
|
||||
EXPECT_TRUE(vel_var(2) > vel_variance_limit) << "vel_var(2)" << vel_var(2);
|
||||
|
||||
Reference in New Issue
Block a user