ArduCopter: 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 c22f60a8eb
commit efc2c39c96
1 changed files with 2 additions and 0 deletions

View File

@ -544,8 +544,10 @@ static const ap_message STREAM_EXTRA3_msgs[] = {
MSG_BATTERY_STATUS, MSG_BATTERY_STATUS,
MSG_GIMBAL_DEVICE_ATTITUDE_STATUS, MSG_GIMBAL_DEVICE_ATTITUDE_STATUS,
MSG_OPTICAL_FLOW, MSG_OPTICAL_FLOW,
#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,
MSG_VIBRATION, MSG_VIBRATION,
#if AP_RPM_ENABLED #if AP_RPM_ENABLED