Skip to content

Commit

Permalink
WPOverlay: change the condition for rally point
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuy authored and meee1 committed Oct 7, 2023
1 parent 7149a47 commit 29419f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExtLibs/Maps/WPOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public void CreateOverlay(PointLatLngAlt home, List<Locationwp> missionitems, do
addpolygonmarker((a + 1).ToString(), item.lng, item.lat,
null, Color.Orange, 0, MAVLink.MAV_MISSION_TYPE.FENCE);
}
else if (command >= (ushort)MAVLink.MAV_CMD.RALLY_POINT) // rally
else if (command == (ushort)MAVLink.MAV_CMD.RALLY_POINT) // rally
{
pointlist.Add(new PointLatLngAlt(item.lat, item.lng, 0, (a + 1).ToString()));
addpolygonmarker((a + 1).ToString(), item.lng, item.lat,
Expand Down

0 comments on commit 29419f5

Please sign in to comment.