mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
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:
parent
90c4bd0ee8
commit
ce04d69d53
@ -2147,6 +2147,7 @@ void NavEKF3_core::bestRotationOrder(rotationOrder &order)
|
|||||||
// and log with value generated by NavEKF3_core::calcTiltErrorVariance()
|
// and log with value generated by NavEKF3_core::calcTiltErrorVariance()
|
||||||
void NavEKF3_core::verifyTiltErrorVariance()
|
void NavEKF3_core::verifyTiltErrorVariance()
|
||||||
{
|
{
|
||||||
|
#if HAL_LOGGING_ENABLED
|
||||||
const Vector3f gravity_ef = Vector3f(0.0f,0.0f,1.0f);
|
const Vector3f gravity_ef = Vector3f(0.0f,0.0f,1.0f);
|
||||||
Matrix3f Tnb;
|
Matrix3f Tnb;
|
||||||
const float quat_delta = 0.001f;
|
const float quat_delta = 0.001f;
|
||||||
@ -2186,6 +2187,7 @@ void NavEKF3_core::verifyTiltErrorVariance()
|
|||||||
};
|
};
|
||||||
AP::logger().WriteBlock(&msg, sizeof(msg));
|
AP::logger().WriteBlock(&msg, sizeof(msg));
|
||||||
}
|
}
|
||||||
|
#endif // HAL_LOGGING_ENABLED
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user