From 05b4914983adab6880fe640e4f57cf7862b9681d Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Tue, 12 Nov 2019 17:37:59 +0100 Subject: [PATCH] ControlMathTest: Adjust tests to account for new way of attitude generation --- src/modules/mc_pos_control/PositionControl/ControlMathTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mc_pos_control/PositionControl/ControlMathTest.cpp b/src/modules/mc_pos_control/PositionControl/ControlMathTest.cpp index 5bc02b7e18..f12c34800a 100644 --- a/src/modules/mc_pos_control/PositionControl/ControlMathTest.cpp +++ b/src/modules/mc_pos_control/PositionControl/ControlMathTest.cpp @@ -151,7 +151,7 @@ TEST_F(ControlMathAttitudeMappingTest, AttitudeMappingUpsideDownYaw90) * reason: thrust points straight down and order Euler * order is: 1. roll, 2. pitch, 3. yaw */ checkDirection(Vector3f(0.f, 0.f, 1.f), M_PI_2_F); - checkEuler(-M_PI_F, 0.f, M_PI_2_F); + checkEuler(M_PI_F, 0.f, -M_PI_2_F); } TEST_F(ControlMathAttitudeMappingTest, AttitudeMappingRandomDirections)