From c726dec83457ca0be66c43ea48b4d2203d579e10 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 20 Sep 2023 22:58:20 +1000 Subject: [PATCH] ArduPlane: remove COMPASS_CAL messages from streamrates if tumble cal disabled fatal error in SITL if we try to send messages with these disabled --- ArduPlane/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index bfa02114b8..5000122129 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -644,8 +644,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, };