mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
GCS_MAVLink: allow NavEKFs to be compiled out
This commit is contained in:
parent
e3dd0d33e7
commit
8fc64ccbe9
@ -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…
Reference in New Issue
Block a user