My simple AI scenario files are getting errored although they all have a last waypoint named 'END'
Atached is one such, the last of four waypoints' entry is duplicated, same LAT, LON but with name 'END' ( the method I've been using for a while )
Breakpoint set at src/AIModel/AIFlightPLan #310 indicates the 'last' waypoint name is 'KFV'
The function getLastWaypoint() displays the 'waypoints' variable as a vector length
four.
Apparently my 'END' waypoint has not made it into the list, have I got the syntax wrong ? Thanks !
Your last waypoint should only contain a name:
By adding a duplicate lat/lon of the preceding waypoint, FlightGear actually ignores your END waypoint completely (if you set your log-level to debug you should get an error about that).
When I first created these scenarios, quite a while ago, it was necessary to include the Lat/Lon in the 'End' waypoint or else the scenario failed. No big deal, it was a long time ago.