AttitudeControlTest: compare vectors, not every element

This commit is contained in:
Matthias Grob 2019-03-10 23:30:24 +01:00
parent f5f95635b4
commit 01e9b2cde8
1 changed files with 1 additions and 3 deletions

View File

@ -7,7 +7,5 @@ TEST(AttitudeControlTest, AllZeroCase)
{
AttitudeControl attitude_control;
matrix::Vector3f rate_setpoint = attitude_control.update(Quatf(), Quatf(), 0.f);
EXPECT_EQ(rate_setpoint(0), 0.f);
EXPECT_EQ(rate_setpoint(1), 0.f);
EXPECT_EQ(rate_setpoint(2), 0.f);
EXPECT_EQ(rate_setpoint, Vector3f());
}