Skip to content

Commit

Permalink
GCS_MAVLINK: MISSION_REQUEST -> MISSION_REQUEST_INT
Browse files Browse the repository at this point in the history
Mission Request Message is deprecated since 2020.
Replaced by Mission Request Int.
  • Loading branch information
menschel committed Dec 13, 2024
1 parent 684d95a commit 1c43fae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/GCS_MAVLink/MissionItemProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ void MissionItemProtocol::handle_mission_item(const mavlink_message_t &msg, cons
return;
}
// if we have enough space, then send the next WP request immediately
if (HAVE_PAYLOAD_SPACE(link->get_chan(), MISSION_REQUEST)) {
if (HAVE_PAYLOAD_SPACE(link->get_chan(), MISSION_REQUEST_INT)) {
queued_request_send();
} else {
link->send_message(next_item_ap_message_id());
Expand Down Expand Up @@ -368,8 +368,8 @@ void MissionItemProtocol::queued_request_send()
INTERNAL_ERROR(AP_InternalError::error_t::gcs_bad_missionprotocol_link);
return;
}
CHECK_PAYLOAD_SIZE2_VOID(link->get_chan(), MISSION_REQUEST);
mavlink_msg_mission_request_send(
CHECK_PAYLOAD_SIZE2_VOID(link->get_chan(), MISSION_REQUEST_INT);
mavlink_msg_mission_request_int_send(
link->get_chan(),
dest_sysid,
dest_compid,
Expand Down

0 comments on commit 1c43fae

Please sign in to comment.