EKF: If aligning yaw for fw with low GPS velocity, use mag

This commit is contained in:
CarlOlsson
2017-10-19 16:49:54 +02:00
parent 61e0c04811
commit 2e03084d34
+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);
}
}