From d57e0b6bde5ab7c192fd9adfb48584056820715d Mon Sep 17 00:00:00 2001 From: priseborough Date: Thu, 8 Jan 2015 12:43:38 +1100 Subject: [PATCH] AP_NavEKF: Remove compiler warning messages --- libraries/AP_NavEKF/AP_NavEKF.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_NavEKF/AP_NavEKF.cpp b/libraries/AP_NavEKF/AP_NavEKF.cpp index 5c7e765e91..233ba79a98 100644 --- a/libraries/AP_NavEKF/AP_NavEKF.cpp +++ b/libraries/AP_NavEKF/AP_NavEKF.cpp @@ -2709,8 +2709,8 @@ void NavEKF::EstimateTerrainOffset() float t25 = t24*vel.y; float t26 = t10-t11; float t27 = t26*vel.x; - float t28 = q0*q1*2.0; - float t29 = q2*q3*2.0; + float t28 = q0*q1*2.0f; + float t29 = q2*q3*2.0f; float t30 = t28+t29; float t31 = t30*vel.z; float t12 = t25-t27+t31; @@ -2718,7 +2718,7 @@ void NavEKF::EstimateTerrainOffset() float t22 = sq(t2); float t23 = 1.0f/(t8*t8*t8); float t32 = sq(t12); - H_OPT = 0.5f*(t13*t22*t23*2.0+t13*t23*t32*2.0)/sqrt(t9*t13*t22+t9*t13*t32); + H_OPT = 0.5f*(t13*t22*t23*2.0f+t13*t23*t32*2.0f)/sqrtf(t9*t13*t22+t9*t13*t32); // calculate innovation variances auxFlowObsInnovVar = H_OPT*Popt*H_OPT + R_LOS;