diff --git a/aman/types/Inbound.py b/aman/types/Inbound.py index 6528526..cd55aff 100644 --- a/aman/types/Inbound.py +++ b/aman/types/Inbound.py @@ -60,11 +60,14 @@ class Inbound: avgSpeed = trackmiles / (float(flightTime.seconds) / 3600.0) ttg = flightTime - timedelta(minutes = (trackmiles / (avgSpeed * 1.1)) * 60) + ttl = timedelta(minutes = (trackmiles / (avgSpeed * 0.9)) * 60) - flightTime ita = self.ReportTime + flightTime earliest = ita - ttg + latest = ita + ttl self.ArrivalCandidates[identifier.Runway.Name] = ArrivalTime(ttg = ttg, star = star, ita = ita, earliest = earliest, - entry = flightTimeUntilIaf, touchdown = flightTime) + entry = flightTimeUntilIaf, touchdown = flightTime, + ttl = ttl, latest = latest) # calculate the first values for later plannings for candidate in self.ArrivalCandidates: