GCS_MAVLink: allow NavEKFs to be compiled out

This commit is contained in:
Peter Barker 2019-12-12 18:30:33 +11:00 committed by Andrew Tridgell
parent e3dd0d33e7
commit 8fc64ccbe9

View File

@ -410,7 +410,8 @@ void GCS_MAVLINK::send_ahrs2()
void GCS_MAVLINK::send_ahrs3()
{
#if AP_AHRS_NAVEKF_AVAILABLE
#if AP_AHRS_NAVEKF_AVAILABLE && HAL_NAVEKF2_AVAILABLE
const NavEKF2 &ekf2 = AP::ahrs_navekf().get_NavEKF2_const();
if (ekf2.activeCores() > 0 &&
HAVE_PAYLOAD_SPACE(chan, AHRS3)) {