mavlink: properly set mission_type

This was defaulted to 0 before which messed with transmitting geofence
and rally items.

Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
Julian Oes 2023-10-20 10:29:26 +13:00
parent 40c9789e7d
commit e9a142ac7d
1 changed files with 1 additions and 0 deletions

View File

@ -1587,6 +1587,7 @@ MavlinkMissionManager::format_mavlink_mission_item(const struct mission_item_s *
mavlink_mission_item->frame = mission_item->frame;
mavlink_mission_item->command = mission_item->nav_cmd;
mavlink_mission_item->autocontinue = mission_item->autocontinue;
mavlink_mission_item->mission_type = _mission_type;
/* default mappings for generic commands */
if (mission_item->frame == MAV_FRAME_MISSION) {