From e9a142ac7dd7cb71130e8311d7e960a2edd3d652 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 20 Oct 2023 10:29:26 +1300 Subject: [PATCH] mavlink: properly set mission_type This was defaulted to 0 before which messed with transmitting geofence and rally items. Signed-off-by: Julian Oes --- src/modules/mavlink/mavlink_mission.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/mavlink/mavlink_mission.cpp b/src/modules/mavlink/mavlink_mission.cpp index e89f0f1f42..ec6bdea979 100644 --- a/src/modules/mavlink/mavlink_mission.cpp +++ b/src/modules/mavlink/mavlink_mission.cpp @@ -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) {