Commit 187602af authored by Stephen Thompson's avatar Stephen Thompson

Issue #6 added ports to use flag to aurora, we need to inititialise ports and enable tools

parent 20ed2cf1
Pipeline #1369 failed with stages
in 13 minutes and 29 seconds
......@@ -21,7 +21,8 @@ def run():
settings_polaris = {"tracker type": "polaris",
"romfiles" : ["../data/8700339.rom"]}
settings_aurora = { "tracker type": "aurora",}
settings_aurora = { "tracker type": "aurora",
"ports to use" : [1,2]}
settings_dummy = {"tracker type": "dummy",}
......
......@@ -80,6 +80,8 @@ class NDITracker:
def _connect_aurora(self):
self._connect_serial()
self._initialise_ports()
self._enable_tools()
def _connect_network(self):
#try and ping first to save time with timeouts
......@@ -203,6 +205,14 @@ class NDITracker:
"""
Internal function to check configuration of an aurora
"""
if "ports to use" not in configuration:
raise KeyError("Configuration for aurora must"
"contain a list of 'ports to use'")
for port in configuration.get("ports to use"):
self.tool_descriptors.append({"description" : port,
"port handle" : port})
if "serial port" in configuration:
self.serial_port = configuration.get("serial port")
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment