GCS_MAVLink: fill target system and target component in MISSION_ITEM responses

This commit is contained in:
Peter Barker 2019-07-05 12:04:26 +10:00 committed by Andrew Tridgell
parent 7b933ffd8a
commit c8353c1c13
1 changed files with 3 additions and 0 deletions

View File

@ -673,6 +673,9 @@ void MissionItemProtocol::handle_mission_request(const GCS_MAVLINK &_link,
convert_MISSION_REQUEST_to_MISSION_REQUEST_INT(packet, request_int);
mavlink_mission_item_int_t item_int{};
item_int.target_system = msg.sysid;
item_int.target_component = msg.compid;
MAV_MISSION_RESULT ret = get_item(_link, msg, request_int, item_int);
if (ret != MAV_MISSION_ACCEPTED) {
return;