From 86faf1ac524ed09de2ddcafc9f76ea23f7813753 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 25 Jul 2024 16:22:14 +1000 Subject: [PATCH] ArduCopter: add build option to not send RC_CHANNELS_RAW we keep this around in case we break old OSD setups --- ArduCopter/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 898541ba26..d64cad0d2d 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -531,7 +531,9 @@ static const ap_message STREAM_POSITION_msgs[] = { static const ap_message STREAM_RC_CHANNELS_msgs[] = { MSG_SERVO_OUTPUT_RAW, MSG_RC_CHANNELS, +#if AP_MAVLINK_MSG_RC_CHANNELS_RAW_ENABLED MSG_RC_CHANNELS_RAW, // only sent on a mavlink1 connection +#endif }; static const ap_message STREAM_EXTRA1_msgs[] = { MSG_ATTITUDE,