Commit fed37650 authored by Thomas Dowrick's avatar Thomas Dowrick

Merge branch '12-can-t-get-tracking-transformations-from-spectra' into 'master'

Resolve "Can't get tracking transformations from Spectra"

Closes #12

See merge request !4
parents 32fce0c7 5810f0be
Pipeline #2845 canceled with stages
in 1 minute and 20 seconds
......@@ -291,10 +291,10 @@ class NDITracker:
ndicapy.ndiCommand(self._device, 'PHRQ:*********1****')
port_handle = ndicapy.ndiGetPHRQHandle(self._device)
tool.update({"port handle" : port_handle})
if self._tracker_type == "vega":
tool.update({"c_str port handle" : int2byte(port_handle)})
else:
if self._tracker_type == "aurora":
tool.update({"c_str port handle" : str(port_handle).encode()})
else:
tool.update({"c_str port handle" : int2byte(port_handle)})
self._check_for_errors('getting srom file port handle {}.'
.format(port_handle))
......
......@@ -12,28 +12,28 @@ from sksurgerynditracker.nditracker import NDITracker
#configuration.
SETTINGS_VEGA = {
"tracker type": "vega",
"ip address" : "999.999.999.999",
"port" : 8765,
"romfiles" : [
"../data/something_else.rom",
"../data/8700339.rom"]
}
"tracker type": "vega",
"ip address" : "999.999.999.999",
"port" : 8765,
"romfiles" : [
"../data/something_else.rom",
"../data/8700339.rom"]
}
SETTINGS_POLARIS = {
"tracker type": "polaris",
"romfiles" : [
"../data/something_else.rom",
"../data/8700339.rom"]
}
"tracker type": "polaris",
"romfiles" : [
"../data/something_else.rom",
"../data/8700339.rom"]
}
SETTINGS_AURORA = {
"tracker type": "aurora"
}
"tracker type": "aurora"
}
SETTINGS_DUMMY = {
"tracker type": "dummy",
}
"tracker type": "dummy",
}
def test_connect():
......
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