mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 19:13:34 +08:00
Make test with Clang
This commit is contained in:
committed by
Mathieu Bresciani
parent
3fa5f501ae
commit
7c179b39b8
@@ -96,7 +96,7 @@ TEST_F(EkfAirspeedTest, testWindVelocityEstimation)
|
||||
EXPECT_TRUE(matrix::isEqual(vel, simulated_velocity_earth));
|
||||
const Vector3f vel_wind_expected = simulated_velocity_earth - R_to_earth_sim * (Vector3f(airspeed_body(0), airspeed_body(1), 0.0f));
|
||||
EXPECT_TRUE(matrix::isEqual(vel_wind_earth, Vector2f(vel_wind_expected.slice<2,1>(0,0))));
|
||||
EXPECT_FLOAT_EQ(height_before_pressure_correction, 0.0f);
|
||||
EXPECT_NEAR(height_before_pressure_correction, 0.0f, 1e-5f);
|
||||
|
||||
// Apply height correction
|
||||
const float static_pressure_coef_xp = 1.0f;
|
||||
|
||||
Reference in New Issue
Block a user