mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 17:53:34 +08:00
ekf2: change delta angle and delta velocity bias states to accel and gyro bias (#21901)
* ekf2-test: remove outdated codegen comparison The definition of states changed so the comparison with the old derivation cannot work anymore. --------- Co-authored-by: bresch <brescianimathieu@gmail.com>
This commit is contained in:
@@ -120,13 +120,13 @@ public:
|
||||
void learningCorrectAccelBias()
|
||||
{
|
||||
const Dcmf R_to_earth = Dcmf(_ekf->getQuaternion());
|
||||
const Vector3f dvel_bias_var = _ekf_wrapper.getDeltaVelBiasVariance();
|
||||
const Vector3f accel_bias_var = _ekf->getAccelBiasVariance();
|
||||
const Vector3f accel_bias = _ekf->getAccelBias();
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
if (fabsf(R_to_earth(2, i)) > 0.8f) {
|
||||
// Highly observable, the variance decreases
|
||||
EXPECT_LT(dvel_bias_var(i), 4.0e-6f) << "axis " << i;
|
||||
EXPECT_LT(accel_bias_var(i), 4.0e-2f) << "axis " << i;
|
||||
}
|
||||
|
||||
EXPECT_LT(accel_bias(i), 4.0e-6f) << "axis " << i;
|
||||
|
||||
Reference in New Issue
Block a user