Ver código fonte

store the WTC in the inbound itself

Sven Czarnian 3 anos atrás
pai
commit
d191da2303
1 arquivos alterados com 6 adições e 0 exclusões
  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: