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