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; }