Browse Source

AP_NavEKF: replace fabs() with fabsf()

mission-4.1.18
Tom Pittenger 10 years ago committed by Andrew Tridgell
parent
commit
2deb0e08ea
  1. 2
      libraries/AP_NavEKF/AP_NavEKF.cpp

2
libraries/AP_NavEKF/AP_NavEKF.cpp

@ -1185,7 +1185,7 @@ void NavEKF::UpdateStrapdownEquationsNED() @@ -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;

Loading…
Cancel
Save