forked from Archive/PX4-Autopilot
EKF: resetGpsAntYaw() fix double promotion
This commit is contained in:
parent
39c09b8092
commit
600240d95f
|
@ -313,7 +313,7 @@ bool Ekf::resetGpsAntYaw()
|
|||
|
||||
// update the quaternion state estimates and corresponding covariances only if
|
||||
// the change in angle has been large or the yaw is not yet aligned
|
||||
if(fabs(yaw_delta) > math::radians(15.0f) || !_control_status.flags.yaw_align) {
|
||||
if(fabsf(yaw_delta) > math::radians(15.0f) || !_control_status.flags.yaw_align) {
|
||||
const float yaw_variance = sq(fmaxf(_params.mag_heading_noise, 1.0e-2f));
|
||||
resetQuatStateYaw(measured_yaw, yaw_variance, true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue