forked from Archive/PX4-Autopilot
AttitudeControlTest: compare vectors, not every element
This commit is contained in:
parent
f5f95635b4
commit
01e9b2cde8
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue