AP_NavEKF3: correct compilation in SITL when logging is disabled

this code is gated on HAL_BOARD_SITL already, and usually we have logging in SITL.  But not always
This commit is contained in:
Peter Barker 2024-03-07 18:52:58 +11:00 committed by Andrew Tridgell
parent 90c4bd0ee8
commit ce04d69d53
1 changed files with 2 additions and 0 deletions

View File

@ -2147,6 +2147,7 @@ void NavEKF3_core::bestRotationOrder(rotationOrder &order)
// and log with value generated by NavEKF3_core::calcTiltErrorVariance()
void NavEKF3_core::verifyTiltErrorVariance()
{
#if HAL_LOGGING_ENABLED
const Vector3f gravity_ef = Vector3f(0.0f,0.0f,1.0f);
Matrix3f Tnb;
const float quat_delta = 0.001f;
@ -2186,6 +2187,7 @@ void NavEKF3_core::verifyTiltErrorVariance()
};
AP::logger().WriteBlock(&msg, sizeof(msg));
}
#endif // HAL_LOGGING_ENABLED
}
#endif