From c531d81cb31b62959e8ceeb055be462a4565bf37 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 19 Nov 2023 11:38:46 +1100 Subject: [PATCH] ArduCopter: stop streaming trying SIM_STATE messages outside sim --- ArduCopter/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 62fd79b97e..139e6d64cd 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -531,7 +531,9 @@ static const ap_message STREAM_RC_CHANNELS_msgs[] = { }; static const ap_message STREAM_EXTRA1_msgs[] = { MSG_ATTITUDE, +#if AP_SIM_ENABLED MSG_SIMSTATE, +#endif MSG_AHRS2, MSG_PID_TUNING // Up to four PID_TUNING messages are sent, depending on GCS_PID_MASK parameter };