Kaynağa Gözat

store the WTC in the inbound itself

Sven Czarnian 3 yıl önce
ebeveyn
işleme
d191da2303
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  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: