From 44a21bc8ac7689a31dce62dab8d700439dbb4cc3 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 12 Feb 2018 12:29:10 +0100 Subject: [PATCH] EKF3: correct acos to acosf --- libraries/AP_NavEKF3/AP_NavEKF3_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp b/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp index c70a2a23b3..2fc605bf37 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp @@ -1630,7 +1630,7 @@ Vector3f NavEKF3_core::calcRotVecVariances() q3 = -q3; } float t2 = q0*q0; - float t3 = acos(q0); + float t3 = acosf(q0); float t4 = -t2+1.0f; float t5 = t2-1.0f; if ((t4 > 1e-9f) && (t5 < -1e-9f)) {