From 2974dc392629284d18c947f26102da2f9c999553 Mon Sep 17 00:00:00 2001 From: Alain Klotz Date: Sun, 29 Oct 2023 00:23:47 +0200 Subject: [PATCH] Minor bug fix. --- src/guitastro_device_dfm/component_detector_focuser_dfm.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/guitastro_device_dfm/component_detector_focuser_dfm.py b/src/guitastro_device_dfm/component_detector_focuser_dfm.py index 23e85a3..3d90811 100644 --- a/src/guitastro_device_dfm/component_detector_focuser_dfm.py +++ b/src/guitastro_device_dfm/component_detector_focuser_dfm.py @@ -111,9 +111,13 @@ class ComponentDetectorFocuserDFM(ComponentDetectorFocuser): def _my_init2(self, *args, **kwargs): # after instanciation of the simulator to configure it. + lim_inf = self._focuser_params["LIM_INF"] + lim_sup = self._focuser_params["LIM_SUP"] + # Place the simu position at mid range + inc = (lim_inf + lim_sup) / 2 + self._maxis.incsimu = inc + self._maxis.inc = inc self._thread_dogoto = None - self._maxis.incsimu = 56000 - self._maxis.inc = 56000 # ------------ del -- libgit2 0.21.2