mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 03:30:35 +08:00
ekf2: use global definition of quaternion error
This commit is contained in:
@@ -258,10 +258,12 @@ TEST_F(EkfFlowTest, yawMotionCorrectionWithAutopilotGyroData)
|
||||
|
||||
// THEN: the flow due to the yaw rotation and the offsets is canceled
|
||||
// and the velocity estimate stays 0
|
||||
// FIXME: the estimate isn't perfect 0 mainly because the mag simulated measurement isn't rotating
|
||||
// and this creates an incorrect Z gyro bias which is used to compensate for the apparent flow
|
||||
const Vector2f estimated_horz_velocity = Vector2f(_ekf->getVelocity());
|
||||
EXPECT_NEAR(estimated_horz_velocity(0), 0.f, 0.01f)
|
||||
EXPECT_NEAR(estimated_horz_velocity(0), 0.f, 0.02f)
|
||||
<< "estimated vel = " << estimated_horz_velocity(0);
|
||||
EXPECT_NEAR(estimated_horz_velocity(1), 0.f, 0.01f)
|
||||
EXPECT_NEAR(estimated_horz_velocity(1), 0.f, 0.02f)
|
||||
<< "estimated vel = " << estimated_horz_velocity(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user