Browse Source

AP_Math: add pitch-7 to rotation tests

master
Peter Barker 6 years ago committed by Andrew Tridgell
parent
commit
e4de5a17d1
  1. 1
      libraries/AP_Math/tests/test_math.cpp

1
libraries/AP_Math/tests/test_math.cpp

@ -69,6 +69,7 @@ TEST(VectorTest, Rotations) @@ -69,6 +69,7 @@ TEST(VectorTest, Rotations)
TEST_ROTATION(ROTATION_ROLL_90_PITCH_68_YAW_293, -0.4066309f, -1.5839677f, -0.5706992f);
TEST_ROTATION(ROTATION_PITCH_315, 0, 1, SQRT_2);
TEST_ROTATION(ROTATION_ROLL_90_PITCH_315, 0, -1, SQRT_2);
TEST_ROTATION(ROTATION_PITCH_7, 1.1144155f, 1, 0.87067682f);
EXPECT_EQ(ROTATION_MAX, rotation_count) << "All rotations are expect to be tested";
}

Loading…
Cancel
Save