From 03fe367459a12172b60e7515f564c147507b0963 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 23 Jan 2024 17:41:49 +1100 Subject: [PATCH] Rover: use virtual method for GCS_MAVLink::handle_message use more appropriate naming for the method. --- Rover/GCS_Mavlink.cpp | 4 ++-- Rover/GCS_Mavlink.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index bf86b9c7e3..6fab0bc591 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -777,7 +777,7 @@ MAV_RESULT GCS_MAVLINK_Rover::handle_command_int_do_reposition(const mavlink_com return MAV_RESULT_ACCEPTED; } -void GCS_MAVLINK_Rover::handleMessage(const mavlink_message_t &msg) +void GCS_MAVLINK_Rover::handle_message(const mavlink_message_t &msg) { switch (msg.msgid) { @@ -799,7 +799,7 @@ void GCS_MAVLINK_Rover::handleMessage(const mavlink_message_t &msg) break; default: - handle_common_message(msg); + GCS_MAVLINK::handle_message(msg); break; } } diff --git a/Rover/GCS_Mavlink.h b/Rover/GCS_Mavlink.h index 050109f5cc..c5df38a432 100644 --- a/Rover/GCS_Mavlink.h +++ b/Rover/GCS_Mavlink.h @@ -38,7 +38,7 @@ protected: private: - void handleMessage(const mavlink_message_t &msg) override; + void handle_message(const mavlink_message_t &msg) override; bool handle_guided_request(AP_Mission::Mission_Command &cmd) override; bool try_send_message(enum ap_message id) override;