From ccb377487299642f2e3c4860df639111f3a63019 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Wed, 10 Nov 2021 22:44:40 +0100 Subject: [PATCH] calculate the maximum TTL --- aman/types/Inbound.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: