Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent lens focus position #65

Open
fstenico opened this issue Jul 27, 2023 · 0 comments
Open

Inconsistent lens focus position #65

fstenico opened this issue Jul 27, 2023 · 0 comments

Comments

@fstenico
Copy link

fstenico commented Jul 27, 2023

I noticed lens_focus_pos range is not a fixed range and changes with lens use, moreover it is not (-32767, +32767) as stated in ZCAM controller focus property tab. For instance, lens_focus_pos=0 could be sometimes a near focus, some other times a far focus.

Is there a way to http query the current focus position? I could not find one. If yes, one could set two extreme values (say +- 100000), check what the lens actually reaches and then use the two queried extremal positions to get the effective position range.

Here is a few focus range I found setting focus positions via http and reading actual lens focus positions through ZCAM controller:
(-3473, 1526) (-4893, 71) (-754, 4221) (-746, 4229)... This yields a focus range of about 5000 positions, but would want to have a method to consistently set it near-middle-far.

EDIT:
Ok I just found one GET /ctrl/get?k=lens_focus_pos and it returns {"code":0,"desc":"string","key":"lens_focus_pos","type":2,"ro":0,"value":-5454,"min":-32767,"max":32767,"step":1} ...
if position is set to 0, it returns -3499; if position is set to -10000, it returns -8474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant