ArduPlane: use virtual method for GCS_MAVLink::handle_message

use more appropriate naming for the method.
This commit is contained in:
Peter Barker 2024-01-23 17:41:49 +11:00 committed by Peter Barker
parent 8cda4ad924
commit 2f0cb8b650
2 changed files with 3 additions and 3 deletions

View File

@ -1223,7 +1223,7 @@ void GCS_MAVLINK_Plane::handle_manual_control_axes(const mavlink_manual_control_
manual_override(plane.channel_rudder, packet.r, 1000, 2000, tnow); manual_override(plane.channel_rudder, packet.r, 1000, 2000, tnow);
} }
void GCS_MAVLINK_Plane::handleMessage(const mavlink_message_t &msg) void GCS_MAVLINK_Plane::handle_message(const mavlink_message_t &msg)
{ {
switch (msg.msgid) { switch (msg.msgid) {
@ -1394,7 +1394,7 @@ void GCS_MAVLINK_Plane::handleMessage(const mavlink_message_t &msg)
} }
default: default:
handle_common_message(msg); GCS_MAVLINK::handle_message(msg);
break; break;
} // end switch } // end switch
} // end handle mavlink } // end handle mavlink

View File

@ -50,7 +50,7 @@ private:
void send_pid_info(const struct AP_PIDInfo *pid_info, const uint8_t axis, const float achieved); void send_pid_info(const struct AP_PIDInfo *pid_info, const uint8_t axis, const float achieved);
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 handle_guided_request(AP_Mission::Mission_Command &cmd) override;
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override; void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override;
MAV_RESULT handle_command_int_do_reposition(const mavlink_command_int_t &packet); MAV_RESULT handle_command_int_do_reposition(const mavlink_command_int_t &packet);