Quote:
Originally Posted by tater
Under Group conditions I have:
i = group.waypoints.iterator ()
for waypoint in i:
# 400 * 1852 is 400 NM in meters.
if waypoint.length > 400*1852:
zigZagToWaypoint(waypoint,i,20,4.5)
It gives a syntax error (I just copied the example in the readme and altered the numbers a little).
|
It needs to be in group change. Group condition is to filter the groups (saving you an 'if' statement), and must be either empty or a true/false statement
Also, I'm guessing it's because you didn't put code tags around the example, but just in case, spacing matters in python, so make sure what's inside the if and for statments is indented beyond them.