do not double optimize the speed until IAF two times
이 커밋은 다음에 포함됨:
1 부모
44837e59f1
커밋
9f6c9f1ff8
1 파일이 변경됨
+1
-3
+1
-3
@@ -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
|
||||
|
||||
새 이슈에서 참조
사용자 차단