From 9f6c9f1ff812fa0111591759a122caa0ffb2667c Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Wed, 13 Oct 2021 21:47:45 +0200 Subject: [PATCH] do not double optimize the speed until IAF two times --- aman/types/Inbound.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aman/types/Inbound.py b/aman/types/Inbound.py index aff0ec7..63ce2b6 100644 --- a/aman/types/Inbound.py +++ b/aman/types/Inbound.py @@ -31,10 +31,8 @@ class Inbound: flightTime, flightTimeUntilIaf, trackmiles = self.secondsUntilTouchdown(weatherModel) # calculate the maximum time to gain (assumption: 10% speed increase by acceleration and shortcuts) - avgSpeed = self.Report.distanceToIAF / (float(flightTimeUntilIaf.seconds) / 3600.0) - self.MaximumTimeToGain = flightTimeUntilIaf - timedelta(minutes = (self.Report.distanceToIAF / (avgSpeed * 1.1)) * 60) avgSpeed = trackmiles / (float(flightTime.seconds) / 3600.0) - self.MaximumTimeToGain += flightTime - timedelta(minutes = (trackmiles / (avgSpeed * 1.1)) * 60) + self.MaximumTimeToGain = flightTime - timedelta(minutes = (trackmiles / (avgSpeed * 1.1)) * 60) # calculate the different arrival times self.InitialArrivalTime = self.ReportTime + flightTime