From 2c91e902de72f5cc739c396587cf894df7e5a945 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 28 Sep 2022 11:37:45 +1000 Subject: [PATCH] Rover: do not send MSG_RPM if RPM not enabled --- Rover/GCS_Mavlink.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index f5030a7d78..ebe4fb97cd 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -2,6 +2,7 @@ #include "GCS_Mavlink.h" +#include #include MAV_TYPE GCS_Rover::frame_type() const @@ -565,7 +566,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_WHEEL_DISTANCE, MSG_ESC_TELEMETRY, };