From c3af5c70c3546cd5dd3d7a049a9e8a79c3dabd79 Mon Sep 17 00:00:00 2001 From: Bob Long Date: Fri, 17 Nov 2023 12:33:10 +1100 Subject: [PATCH] WPOverlay: treat VTOL_LAND like LAND Don't draw connecting lines from a VTOL_LAND to the next waypoint. --- ExtLibs/Maps/WPOverlay.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExtLibs/Maps/WPOverlay.cs b/ExtLibs/Maps/WPOverlay.cs index 9948b90a46..fb4fc36daf 100644 --- a/ExtLibs/Maps/WPOverlay.cs +++ b/ExtLibs/Maps/WPOverlay.cs @@ -72,7 +72,7 @@ public void CreateOverlay(PointLatLngAlt home, List missionitems, do || command == (ushort) MAVLink.MAV_CMD.DO_SET_ROI || command == (ushort)MAVLink.MAV_CMD.DO_LAND_START) { // land can be 0,0 or a lat,lng - if (command == (ushort) MAVLink.MAV_CMD.LAND && item.lat == 0 && item.lng == 0) + if ((command == (ushort)MAVLink.MAV_CMD.LAND || command == (ushort)MAVLink.MAV_CMD.VTOL_LAND) && item.lat == 0 && item.lng == 0) { continue; } @@ -96,7 +96,7 @@ public void CreateOverlay(PointLatLngAlt home, List missionitems, do addpolygonmarker((a + 1).ToString(), item.lng, item.lat, item.alt * altunitmultiplier, null, wpradius); } - else if (command == (ushort) MAVLink.MAV_CMD.LAND && item.lat != 0 && item.lng != 0) + else if ((command == (ushort) MAVLink.MAV_CMD.LAND || command == (ushort) MAVLink.MAV_CMD.VTOL_LAND) && item.lat != 0 && item.lng != 0) { pointlist.Add(new PointLatLngAlt(item.lat, item.lng, item.alt + gethomealt((MAVLink.MAV_FRAME) item.frame, item.lat, item.lng),