From 410bd30f041c6c27d55cdf518b7ffe05d543f2ce Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 28 Sep 2022 11:37:45 +1000 Subject: [PATCH] ArduCopter: do not send MSG_RPM if RPM not enabled --- ArduCopter/GCS_Mavlink.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 528a8964fb..55f62c53a8 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -1,6 +1,7 @@ #include "Copter.h" #include "GCS_Mavlink.h" +#include MAV_TYPE GCS_Copter::frame_type() const { @@ -533,7 +534,9 @@ static const ap_message STREAM_EXTRA3_msgs[] = { MSG_MAG_CAL_PROGRESS, MSG_EKF_STATUS_REPORT, MSG_VIBRATION, +#if AP_RPM_ENABLED MSG_RPM, +#endif MSG_ESC_TELEMETRY, MSG_GENERATOR_STATUS, MSG_WINCH_STATUS,