Skip to content

Commit b2250cd

Browse files
peterbarkertridge
authored andcommitted
mavwp: DO_RETURN_PATH_START is not somewhere you fly
... so stop drawing it as a node you fly to
1 parent 1e043a7 commit b2250cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mavwp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def __init__(self, target_system=0, target_component=0):
3838
mavutil.mavlink.MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION : (255,0,0),
3939
mavutil.mavlink.MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION : (0,255,0),
4040
mavutil.mavlink.MAV_CMD_DO_LAND_START: (255, 127, 0),
41+
mavutil.mavlink.MAV_CMD_DO_RETURN_PATH_START: (127, 255, 0),
4142
}
4243

4344
def count(self):
@@ -295,7 +296,7 @@ def view_indexes(self, done=None):
295296
if self.is_location_wp(w):
296297
ret.append(idx)
297298
break
298-
if w.command == mavutil.mavlink.MAV_CMD_DO_LAND_START:
299+
if w.command in [mavutil.mavlink.MAV_CMD_DO_LAND_START, mavutil.mavlink.MAV_CMD_DO_RETURN_PATH_START]:
299300
# these are starting points; we should never fly to
300301
# one of these.... but we want an edge *from* one of these
301302
if len(ret) == 0:

0 commit comments

Comments
 (0)