Skip to content

Autofocus z not updating #293

@guiwitz

Description

@guiwitz

It seems that when doing just contrast AutoFocus (no focus-map) the z position does not get updated. Both in the former MultiPointWorker and the current multi_point_worker acquire_at_position function, autofus does run e.g. here and acquisition happens at the correct z (if focus range was sufficient to find the actual focus) but then it seems that this new z position is never saved. Is that correct or can you point me to where this update happens?

On our system at least this is what happens in practice: instead of starting from the previous in-focus position the search always starts from the original z position. This is inefficient and also can lead to out-of-focus if the z-drift is too large and the focus gets out of the search range. I managed to fix this by actually updating the z position but I'm wondering if this is an intended behavior?

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