diff --git a/aman/types/Inbound.py b/aman/types/Inbound.py index dd24f65..ff236fc 100644 --- a/aman/types/Inbound.py +++ b/aman/types/Inbound.py @@ -66,14 +66,15 @@ class Inbound: # the closer we get to the IAF the less time delta can be achieved by short cuts, delay vectors or speeds ratio = min(2.0, max(0.0, self.Report.distanceToIAF / (trackmiles - self.Report.distanceToIAF))) possibleTimeDelta = (trackmiles / (avgSpeed * 0.9)) * 60 - timeDelta = timedelta(minutes = (possibleTimeDelta - flightTime.total_seconds() / 60) * ratio) + ttg = timedelta(minutes = (possibleTimeDelta - flightTime.total_seconds() / 60) * ratio) + ttl = timedelta(minutes = (possibleTimeDelta - flightTime.total_seconds() / 60)) ita = self.ReportTime + flightTime - earliest = ita - timeDelta - latest = ita + timeDelta + earliest = ita - ttg + latest = ita + ttl - self.ArrivalCandidates[identifier.Runway.Name] = ArrivalData(ttg = timeDelta, star = star, ita = ita, earliest = earliest, + self.ArrivalCandidates[identifier.Runway.Name] = ArrivalData(ttg = ttg, star = star, ita = ita, earliest = earliest, entry = flightTimeUntilIaf, touchdown = flightTime, - ttl = timeDelta, latest = latest, route = arrivalRoute, trackmiles = trackmiles) + ttl = ttl, latest = latest, route = arrivalRoute, trackmiles = trackmiles) # calculate the first values for later plannings for candidate in self.ArrivalCandidates: