Skip to content

Commit

Permalink
adjust threshold unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haumarco committed Dec 20, 2024
1 parent 9369de0 commit 8be67f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/ekf2/test/test_EKF_height_fusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ TEST_F(EkfHeightFusionTest, gpsRef)

const BiasEstimator::status &baro_status_initial = _ekf->getBaroBiasEstimatorStatus();
const float baro_rel_initial = baro_initial - _sensor_simulator._gps.getData().alt;
EXPECT_NEAR(baro_status_initial.bias, baro_rel_initial, 0.6f);
EXPECT_NEAR(baro_status_initial.bias, baro_rel_initial, 0.8f);

// AND WHEN: the baro data increases
const float baro_increment = 5.f;
Expand Down Expand Up @@ -414,7 +414,7 @@ TEST_F(EkfHeightFusionTest, changeEkfOriginAlt)
reset_logging_checker.capturePostResetState();

// An origin reset doesn't change the baro bias as it is relative to the height reference (GNSS)
EXPECT_NEAR(_ekf->getBaroBiasEstimatorStatus().bias, baro_bias_prev, 0.3f);
EXPECT_NEAR(_ekf->getBaroBiasEstimatorStatus().bias, baro_bias_prev, 0.4f);

EXPECT_NEAR(_ekf->getTerrainVertPos(), alt_increment, 1.f);

Expand Down

0 comments on commit 8be67f2

Please sign in to comment.