GCS_MAVLink: fill missing seq and type fields in MISSION_ITEM

GCS_MAVLink: fill mission type in return MISSION_ITEM packets

GCS_MAVLink: fill in return sequence number for MISSION_ITEM messages
This commit is contained in:
Peter Barker 2019-08-01 17:40:06 +10:00 committed by Peter Barker
parent 16503f7f25
commit 8fc6e16a4a

View File

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