do not overwrite the last waypoint if it is already set up

Esse commit está contido em:
Sven Czarnian
2021-12-14 11:25:27 +01:00
commit 01b12b4398

Ver arquivo

@@ -124,7 +124,8 @@ class Node:
if flownDistance >= self.PredictedDistanceToIAF:
flightTimeOnStarSeconds += 10
if flownDistance >= trackmiles:
self.updateArrivalWaypoint(arrivalRoute, flightTimeSeconds, currentPosition[0], currentIAS, currentPosition[1])
if None == arrivalRoute[-1].FlightTime:
self.updateArrivalWaypoint(arrivalRoute, flightTimeSeconds, currentPosition[0], currentIAS, currentPosition[1])
break
# check if we follow a new waypoint pair