AP_NavEKF3: Eliminate unnecessary function call

This commit is contained in:
Paul Riseborough 2020-04-18 10:01:54 +10:00 committed by Andrew Tridgell
parent 6ec69e6ed1
commit 4b3952bd15

View File

@ -533,7 +533,7 @@ void NavEKF3_core::checkGyroCalStatus(void)
{
// check delta angle bias variances
const float delAngBiasVarMax = sq(radians(0.15f * dtEkfAvg));
if (effective_magCal() == MagCal::GSF_YAW) {
if (effectiveMagCal == MagCal::GSF_YAW) {
// rotate the variances into earth frame and evaluate horizontal terms only as yaw component is poorly observable without a compass
// which can make this check fail
Vector3f delAngBiasVarVec = Vector3f(P[10][10],P[11][11],P[12][12]);