add better differences to check if arrival candidates exist

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

View File

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