From 69e3d59eb90f6d2273594c86b5a284baf3886399 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 21 Nov 2024 10:26:05 +1100 Subject: [PATCH] GCS_MAVLink: Fence: correct mission_type in mission_item_int conversion --- libraries/GCS_MAVLink/MissionItemProtocol_Fence.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/GCS_MAVLink/MissionItemProtocol_Fence.cpp b/libraries/GCS_MAVLink/MissionItemProtocol_Fence.cpp index 8984d4b39b..aea6d20933 100644 --- a/libraries/GCS_MAVLink/MissionItemProtocol_Fence.cpp +++ b/libraries/GCS_MAVLink/MissionItemProtocol_Fence.cpp @@ -66,6 +66,7 @@ bool MissionItemProtocol_Fence::get_item_as_mission_item(uint16_t seq, ret_packet.x = fenceitem.loc.x; ret_packet.y = fenceitem.loc.y; ret_packet.z = 0; + ret_packet.mission_type = MAV_MISSION_TYPE_FENCE; return true; }