add better differences to check if arrival candidates exist

This commit is contained in:
Sven Czarnian
2021-12-22 13:27:35 +01:00
vanhempi 4439f91633
commit 1b53084e8c

Näytä tiedosto

@@ -155,7 +155,7 @@ class Node:
self.PredictedDistanceToIAF = inbound.Report.distanceToIAF
self.PredictedCoordinate = [ inbound.CurrentPosition.latitude, inbound.CurrentPosition.longitude ]
self.PredictionTime = referenceTime
self.ArrivalCandidates = {}
self.ArrivalCandidates = None
self.Inbound = inbound
if None == referenceTime or None == sequencingConfig:
@@ -185,6 +185,7 @@ class Node:
self.PredictedCoordinate = prediction
setEnrouteTime = None == self.Inbound.EnrouteArrivalTime
self.ArrivalCandidates = {}
# calculate the timings for the different arrival runways
for identifier in sequencingConfig.ActiveArrivalRunways: