Browse Source

GCS_MAVLink: allow NavEKFs to be compiled out

zr-v5.1
Peter Barker 5 years ago committed by Andrew Tridgell
parent
commit
8fc64ccbe9
  1. 3
      libraries/GCS_MAVLink/GCS_Common.cpp

3
libraries/GCS_MAVLink/GCS_Common.cpp

@ -410,7 +410,8 @@ void GCS_MAVLINK::send_ahrs2() @@ -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)) {

Loading…
Cancel
Save