handle the requested runways in the optimization
This commit is contained in:
@@ -15,6 +15,7 @@ class Inbound:
|
||||
self.CurrentPosition = report.position
|
||||
self.ReportTime = datetime.strptime(report.reportTime + '+0000', '%Y%m%d%H%M%S%z').replace(tzinfo = pytz.UTC)
|
||||
self.InitialArrivalTime = None
|
||||
self.RequestedRunway = None
|
||||
self.PlannedArrivalTime = None
|
||||
self.PlannedRunway = None
|
||||
self.PlannedStar = None
|
||||
@@ -28,6 +29,10 @@ class Inbound:
|
||||
if 'L' == wtc or 'M' == wtc or 'H' == wtc or 'J' == wtc:
|
||||
self.WTC = wtc
|
||||
|
||||
# analyze the requested runway
|
||||
if '' != report.requestedRunway:
|
||||
self.RequestedRunway = report.requestedRunway
|
||||
|
||||
# search performance data -> fallback to A320
|
||||
if self.Report.aircraft.type in performanceData.Aircrafts:
|
||||
self.PerformanceData = performanceData.Aircrafts[self.Report.aircraft.type]
|
||||
|
||||
Reference in New Issue
Block a user