From b7e4e9747aec0610cd0584528f86d3f5505ef56f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 20 Sep 2023 22:58:20 +1000 Subject: [PATCH] Rover: remove COMPASS_CAL messages from streamrates if tumble cal disabled fatal error in SITL if we try to send messages with these disabled --- Rover/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index f9a370d3c9..486b541ae4 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -564,8 +564,10 @@ static const ap_message STREAM_EXTRA3_msgs[] = { MSG_BATTERY_STATUS, MSG_GIMBAL_DEVICE_ATTITUDE_STATUS, MSG_OPTICAL_FLOW, +#if COMPASS_CAL_ENABLED MSG_MAG_CAL_REPORT, MSG_MAG_CAL_PROGRESS, +#endif MSG_EKF_STATUS_REPORT, MSG_VIBRATION, #if AP_RPM_ENABLED