AP_Math: fixed build

This commit is contained in:
Andrew Tridgell 2021-07-22 14:00:06 +10:00 committed by Randy Mackay
parent 3304730d7c
commit 9a469bdaa9
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ TEST(MathTest, VELCORRECTION)
static constexpr Matrix3F rot(0.0f, -1.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f); static constexpr Matrix3F rot(0.0f, -1.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f);
static constexpr Vector3F rate{-1.0f, -1.0f, -1.0f}; static constexpr Vector3F rate{-1.0f, -1.0f, -1.0f};
EXPECT_TRUE(Vector3F(1.0f, 1.0f, 0.0f) == get_vel_correction_for_sensor_offset(pos, rot, rate)); EXPECT_TRUE(Vector3F(1.0f, 1.0f, 0.0f) == get_vel_correction_for_sensor_offset(pos, rot, rate));
EXPECT_TRUE(Vector3F() == get_vel_correction_for_sensor_offset(Vector3f(), rot, rate)); EXPECT_TRUE(Vector3F() == get_vel_correction_for_sensor_offset(Vector3F(), rot, rate));
} }
TEST(MathTest, LOWPASSALPHA) TEST(MathTest, LOWPASSALPHA)