Loading noctua/config/devices.ini +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ ping-using = all viewer-key = scicam1 [cam2] module = atik module = atik2 class = Camera node = DUMMY depends-on = pdu_cam2 Loading noctua/guider.py +1 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,7 @@ class Guider: # No fixed delay: _step()/_acquire() already block on the camera # being free, so the next correction starts as soon as it is. # The sleep(0) just yields control for cancellation/scheduling. # self.active = False await asyncio.sleep(0) def _step(self): Loading test_atik.py 100644 → 100755 +7 −2 Original line number Diff line number Diff line Loading @@ -105,11 +105,16 @@ class AtikTest: if ret != 0: raise RuntimeError(f"ArtemisStartExposure fallita, codice {ret}") deadline = time.time() + exptime_s + 10.0 wait = 30.0 deadline = time.time() + exptime_s + wait dormi = 1 while not self.lib.ArtemisImageReady(self.handle): if time.time() > deadline: raise RuntimeError("Timeout in attesa di ArtemisImageReady") time.sleep(0.1) wait = wait - dormi print(wait) time.sleep(dormi) x, y, w, h, binx, biny = (ctypes.c_int() for _ in range(6)) self.lib.ArtemisGetImageData(self.handle, ctypes.byref(x), ctypes.byref(y), Loading Loading
noctua/config/devices.ini +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ ping-using = all viewer-key = scicam1 [cam2] module = atik module = atik2 class = Camera node = DUMMY depends-on = pdu_cam2 Loading
noctua/guider.py +1 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,7 @@ class Guider: # No fixed delay: _step()/_acquire() already block on the camera # being free, so the next correction starts as soon as it is. # The sleep(0) just yields control for cancellation/scheduling. # self.active = False await asyncio.sleep(0) def _step(self): Loading
test_atik.py 100644 → 100755 +7 −2 Original line number Diff line number Diff line Loading @@ -105,11 +105,16 @@ class AtikTest: if ret != 0: raise RuntimeError(f"ArtemisStartExposure fallita, codice {ret}") deadline = time.time() + exptime_s + 10.0 wait = 30.0 deadline = time.time() + exptime_s + wait dormi = 1 while not self.lib.ArtemisImageReady(self.handle): if time.time() > deadline: raise RuntimeError("Timeout in attesa di ArtemisImageReady") time.sleep(0.1) wait = wait - dormi print(wait) time.sleep(dormi) x, y, w, h, binx, biny = (ctypes.c_int() for _ in range(6)) self.lib.ArtemisGetImageData(self.handle, ctypes.byref(x), ctypes.byref(y), Loading