From cc1658db15d720e05d577787363823be0f2bd161 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 22 Dec 2015 11:23:18 +0100 Subject: [PATCH] fixed wrong type conversion --- matrix/Euler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/Euler.hpp b/matrix/Euler.hpp index c055b0d827..346acf2c51 100644 --- a/matrix/Euler.hpp +++ b/matrix/Euler.hpp @@ -54,7 +54,7 @@ public: phi() = (Type)0.0; psi() = (Type)atan2(dcm(1,2) - dcm(0,1), dcm(0,2) + dcm(1,1)) + theta(); - } else if (fabs(theta() + (Type)M_PI_2) < (Type)1.0e-3) { + } else if ((Type)fabs(theta() + (Type)M_PI_2) < (Type)1.0e-3) { phi() = (Type)0.0; psi() = (Type)atan2(dcm(1,2) - dcm(0,1), dcm(0,2) + dcm(1,1)) - theta();