瀏覽代碼

store the WTC in the inbound itself

Sven Czarnian 3 年之前
父節點
當前提交
d191da2303
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      aman/types/Inbound.py

+ 6 - 0
aman/types/Inbound.py

@@ -37,6 +37,12 @@ class Inbound:
         self.PlannedRunway = None
         self.PlannedStar = None
         self.ArrivalCandidates = {}
+        self.WTC = None
+
+        # analyze the WTC
+        wtc = report.aircraft.wtc.upper()
+        if 'L' == wtc or 'M' == wtc or 'H' == wtc or 'J' == wtc:
+            self.WTC = wtc
 
         # search performance data -> fallback to A320
         if self.Report.aircraft.type in performanceData.Aircrafts: