AntennaTracker: remove COMPASS_CAL messages from streamrates if tumble cal disabled

fatal error in SITL if we try to send messages with these disabled
This commit is contained in:
Peter Barker 2023-09-20 22:58:20 +10:00 committed by Andrew Tridgell
parent fa6ec69bf1
commit c22f60a8eb

View File

@ -302,8 +302,10 @@ static const ap_message STREAM_EXTRA3_msgs[] = {
MSG_SIMSTATE, MSG_SIMSTATE,
MSG_SYSTEM_TIME, MSG_SYSTEM_TIME,
MSG_AHRS2, MSG_AHRS2,
#if COMPASS_CAL_ENABLED
MSG_MAG_CAL_REPORT, MSG_MAG_CAL_REPORT,
MSG_MAG_CAL_PROGRESS, MSG_MAG_CAL_PROGRESS,
#endif
MSG_EKF_STATUS_REPORT, MSG_EKF_STATUS_REPORT,
}; };
static const ap_message STREAM_PARAMS_msgs[] = { static const ap_message STREAM_PARAMS_msgs[] = {