AP_NavEKF: replace fabs() with fabsf()

This commit is contained in:
Tom Pittenger 2015-05-08 11:45:13 -07:00 committed by Andrew Tridgell
parent 79605de8f5
commit 2deb0e08ea

View File

@ -1185,7 +1185,7 @@ void NavEKF::UpdateStrapdownEquationsNED()
// fast rotations that can cause problems due to gyro scale factor errors.
float alphaLPF = constrain_float(dtIMUactual, 0.0f, 1.0f);
yawRateFilt += (state.omega.z - yawRateFilt)*alphaLPF;
if (fabs(yawRateFilt) > 1.0f) {
if (fabsf(yawRateFilt) > 1.0f) {
highYawRate = true;
} else {
highYawRate = false;