AP_WindVane: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-01 13:17:44 -03:00 committed by Andrew Tridgell
parent e8e41c512e
commit 03582ff77c
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ bool AP_WindVane::start_speed_calibration()
} }
// send mavlink wind message // 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 // exit immediately if not enabled
if (!enabled()) { if (!enabled()) {

View File

@ -89,7 +89,7 @@ public:
bool start_speed_calibration(); bool start_speed_calibration();
// send mavlink wind message // send mavlink wind message
void send_wind(mavlink_channel_t chan); void send_wind(mavlink_channel_t chan) const;
// parameter block // parameter block
static const struct AP_Param::GroupInfo var_info[]; static const struct AP_Param::GroupInfo var_info[];