ArduSub: 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 c726dec834
commit fe51f5448f
1 changed files with 2 additions and 0 deletions

View File

@ -386,8 +386,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