From 357f6e7b11ddebbc85ef32b23213609e83eb2c98 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Sat, 25 Dec 2021 09:00:13 +0100 Subject: [PATCH] do not minimize the TTG --- aman/sys/aco/Node.py | 5 ++++- aman/types/Inbound.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/aman/sys/aco/Node.py b/aman/sys/aco/Node.py index 5aba418..e7f1449 100644 --- a/aman/sys/aco/Node.py +++ b/aman/sys/aco/Node.py @@ -209,8 +209,11 @@ class Node: ttg = timedelta(seconds = timeUntilIAF.total_seconds() * ttgRatio) if (ttg.total_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 - earliest = ita - ttg + earliest = ita - self.Inbound.MaximumTimeToGain self.ArrivalCandidates[identifier.Runway.Name] = ArrivalData(star = star, ita = earliest, route = arrivalRoute, trackmiles = trackmiles) diff --git a/aman/types/Inbound.py b/aman/types/Inbound.py index e274bbb..31e9406 100644 --- a/aman/types/Inbound.py +++ b/aman/types/Inbound.py @@ -17,6 +17,7 @@ class Inbound: self.EnrouteArrivalTime = None self.InitialArrivalTime = None self.RequestedRunway = None + self.MaximumTimeToGain = None self.PlannedArrivalTime = None self.PlannedRunway = None self.PlannedStar = None