mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
ArduPlane: use virtual method for GCS_MAVLink::handle_message
use more appropriate naming for the method.
This commit is contained in:
parent
8cda4ad924
commit
2f0cb8b650
@ -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);
|
||||
}
|
||||
|
||||
void GCS_MAVLINK_Plane::handleMessage(const mavlink_message_t &msg)
|
||||
void GCS_MAVLINK_Plane::handle_message(const mavlink_message_t &msg)
|
||||
{
|
||||
switch (msg.msgid) {
|
||||
|
||||
@ -1394,7 +1394,7 @@ void GCS_MAVLINK_Plane::handleMessage(const mavlink_message_t &msg)
|
||||
}
|
||||
|
||||
default:
|
||||
handle_common_message(msg);
|
||||
GCS_MAVLINK::handle_message(msg);
|
||||
break;
|
||||
} // end switch
|
||||
} // end handle mavlink
|
||||
|
@ -50,7 +50,7 @@ private:
|
||||
|
||||
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;
|
||||
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override;
|
||||
MAV_RESULT handle_command_int_do_reposition(const mavlink_command_int_t &packet);
|
||||
|
Loading…
Reference in New Issue
Block a user