From d0be115fce23494d1f73f0edb54a20f7e2940d00 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Fri, 12 Nov 2021 20:13:36 +0100 Subject: [PATCH] add Euroscope to the worker itself --- aman/sys/Worker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aman/sys/Worker.py b/aman/sys/Worker.py index fffd95a..649dc87 100644 --- a/aman/sys/Worker.py +++ b/aman/sys/Worker.py @@ -5,6 +5,7 @@ import sys import time from aman.com import Weather +from aman.com.Euroscope import Euroscope from aman.com.WebUI import WebUI from aman.config.Airport import Airport from aman.sys.aco.Colony import Colony @@ -30,7 +31,8 @@ class Worker(Thread): def __del__(self): self.release() - def acquire(self, icao : str, configuration : Airport, weather : Weather, performance : PerformanceData, webui : WebUI): + def acquire(self, icao : str, configuration : Airport, weather : Weather, + performance : PerformanceData, webui : WebUI, euroscope : Euroscope): self.StopThread = None self.Icao = icao self.Configuration = configuration @@ -41,6 +43,7 @@ class Worker(Thread): self.WeatherModel = WeatherModel(configuration.GaforId, weather) self.RecedingHorizonControl = RecedingHorizonControl(configuration.RecedingHorizonControl) self.WebUi = webui + self.Euroscope = euroscope # merge the constraint information with the GNG information for runway in self.Configuration.GngData.ArrivalRoutes: