mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
AttitudeControlTest: compare vectors, not every element
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user