Merge pull request #341 from CarlOlsson/fix/fw_yaw_align2

EKF: If aligning yaw for fw with low GPS velocity, use mag
This commit is contained in:
Paul Riseborough
2017-10-20 14:05:52 +11:00
committed by GitHub
+2 -2
View File
@@ -464,8 +464,8 @@ bool Ekf::realignYawGPS()
}
} else {
// we were unable to verify the alignment
return false;
// attempt a normal alignment using the magnetometer
return resetMagHeading(_mag_sample_delayed.mag);
}
}