Hi,
I have built a dit focuser using a nema17 + planetary gear with a ratio of 29, having roughly a 0.00041 mm per step. I'm using the moonlight driver. With this setup, i reach focus at ~ 70500 steps (~ 20.11mm focuser outward). I found that It's impossible to use such a number in ekos/kstars as it has an hard limit on 65535 steps and an interface limit to 60000 (strange number tho...).
I'm not proficient enough to create a pyindi interface and test if the problem is in the driver itself or in the kstars/ekos interface. What do you suggest? At the moment i'm moving to 50000, then set position as 0 and then move again, but this is not a good solution imho.
FYI:
Kstars 3.0.0 and indi 1.7.6
Not sure you are correct, I use a focuser with 125,000 steps to go from fully in to fully out on my tube, and that works with no issues...although am using a different driver...but works fine in Ekos..
The following user(s) said Thank You: Luca Gervasi
Hi and thank you for your answer.
Your reply suggested that it has nothing to do with ekos/kstars so i took the code from github and...it seems that the absolute max position is hardcoded to 60000:
What happens when you update the max travel? it still doesn't accept larger values? I'll update it to 100,000 by default, but it shouldn't matter with max travel property that I added for this very purpose.
The following user(s) said Thank You: Luca Gervasi
Setting this value manually to 100.000 seems to be inconsistent as i'm unable to input values bigger than 60000 in kstars's focus panel and I'm unable to set values bigger than 60000 on the preset tab. Plus (and this is strange) focusing module seems to ignore this limit when i hit "focus in" button (which does a steps +=100) and goes on to 65535 steps.
I edited the xml file and can confirm that the value has been saved:
But I see that what seems to be related to this value is commented out in the code (moonlite.cpp, lines 100-102 @ master).
Is there any other common interface (and arduino code) that should be used in DIY projects instead of the moonlight's one ?
Hello, I built a focuser as shown in this post indilib.org/forum/focusers-filter-wheels...-piface.html?start=0 and I have a similar problem, but I use indi_rpifocus.
Ekos gives me maximum availability of 40000 steps but I would need at least triple this value. Does anyone know how I can increase the maximum step limit?
You need to edit line 32 of piface_focuser.cpp file (#define MAX_STEPS 20000) and set your preferred value.
Please note that I do not update this driver anymore because original piface addon is not available anymore.