Skip to content

Inconsistent lens focus position  #65

@fstenico

Description

@fstenico

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions