From 03582ff77c17d05e245683ab77604a0b7bcd6108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 1 Feb 2021 13:17:44 -0300 Subject: [PATCH] AP_WindVane: Add missing const in member functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_WindVane/AP_WindVane.cpp | 2 +- libraries/AP_WindVane/AP_WindVane.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_WindVane/AP_WindVane.cpp b/libraries/AP_WindVane/AP_WindVane.cpp index 54eceab80a..e7c3d716ef 100644 --- a/libraries/AP_WindVane/AP_WindVane.cpp +++ b/libraries/AP_WindVane/AP_WindVane.cpp @@ -318,7 +318,7 @@ bool AP_WindVane::start_speed_calibration() } // send mavlink wind message -void AP_WindVane::send_wind(mavlink_channel_t chan) +void AP_WindVane::send_wind(mavlink_channel_t chan) const { // exit immediately if not enabled if (!enabled()) { diff --git a/libraries/AP_WindVane/AP_WindVane.h b/libraries/AP_WindVane/AP_WindVane.h index 2067c38fbc..be0094aa69 100644 --- a/libraries/AP_WindVane/AP_WindVane.h +++ b/libraries/AP_WindVane/AP_WindVane.h @@ -89,7 +89,7 @@ public: bool start_speed_calibration(); // send mavlink wind message - void send_wind(mavlink_channel_t chan); + void send_wind(mavlink_channel_t chan) const; // parameter block static const struct AP_Param::GroupInfo var_info[];