|
@@ -209,8 +209,11 @@ class Node:
|
|
ttg = timedelta(seconds = timeUntilIAF.total_seconds() * ttgRatio)
|
|
ttg = timedelta(seconds = timeUntilIAF.total_seconds() * ttgRatio)
|
|
if (ttg.total_seconds() > ttgMax):
|
|
if (ttg.total_seconds() > ttgMax):
|
|
ttg = timedelta(seconds = ttgMax)
|
|
ttg = timedelta(seconds = ttgMax)
|
|
|
|
+ if None == self.Inbound.MaximumTimeToGain or ttg > self.Inbound.MaximumTimeToGain:
|
|
|
|
+ self.Inbound.MaximumTimeToGain = ttg
|
|
|
|
+
|
|
ita = self.Inbound.ReportTime + flightTime
|
|
ita = self.Inbound.ReportTime + flightTime
|
|
- earliest = ita - ttg
|
|
|
|
|
|
+ earliest = ita - self.Inbound.MaximumTimeToGain
|
|
|
|
|
|
self.ArrivalCandidates[identifier.Runway.Name] = ArrivalData(star = star, ita = earliest, route = arrivalRoute,
|
|
self.ArrivalCandidates[identifier.Runway.Name] = ArrivalData(star = star, ita = earliest, route = arrivalRoute,
|
|
trackmiles = trackmiles)
|
|
trackmiles = trackmiles)
|