From c22f60a8eb39fa8e896fbc9d621d6744445690e8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 20 Sep 2023 22:58:20 +1000 Subject: [PATCH] AntennaTracker: remove COMPASS_CAL messages from streamrates if tumble cal disabled fatal error in SITL if we try to send messages with these disabled --- AntennaTracker/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AntennaTracker/GCS_Mavlink.cpp b/AntennaTracker/GCS_Mavlink.cpp index 211f26bd9a..d38d8af775 100644 --- a/AntennaTracker/GCS_Mavlink.cpp +++ b/AntennaTracker/GCS_Mavlink.cpp @@ -302,8 +302,10 @@ static const ap_message STREAM_EXTRA3_msgs[] = { MSG_SIMSTATE, MSG_SYSTEM_TIME, MSG_AHRS2, +#if COMPASS_CAL_ENABLED MSG_MAG_CAL_REPORT, MSG_MAG_CAL_PROGRESS, +#endif MSG_EKF_STATUS_REPORT, }; static const ap_message STREAM_PARAMS_msgs[] = {