Commit 2974dc392629284d18c947f26102da2f9c999553
1 parent
f80c1bc1
Exists in
master
Minor bug fix.
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/guitastro_device_dfm/component_detector_focuser_dfm.py
... | ... | @@ -111,9 +111,13 @@ class ComponentDetectorFocuserDFM(ComponentDetectorFocuser): |
111 | 111 | |
112 | 112 | def _my_init2(self, *args, **kwargs): |
113 | 113 | # after instanciation of the simulator to configure it. |
114 | + lim_inf = self._focuser_params["LIM_INF"] | |
115 | + lim_sup = self._focuser_params["LIM_SUP"] | |
116 | + # Place the simu position at mid range | |
117 | + inc = (lim_inf + lim_sup) / 2 | |
118 | + self._maxis.incsimu = inc | |
119 | + self._maxis.inc = inc | |
114 | 120 | self._thread_dogoto = None |
115 | - self._maxis.incsimu = 56000 | |
116 | - self._maxis.inc = 56000 | |
117 | 121 | |
118 | 122 | # ------------ del |
119 | 123 | ... | ... |