Skip to content

Commit aa960fe

Browse files
csu-bot-zividblauer4
authored andcommitted
Samples: Fix auto2d tuning for variable aperture camera
Fix Auto2D tuning logic to skip aperture changes only for fixed‑aperture cameras (e.g., Zivid 3), instead of assuming aperture changes for all cameras.
1 parent 7cc87bd commit aa960fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/applications/advanced/auto_2d_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def _adjust_acquisition_settings_2d(
406406
Updated tuning index
407407
408408
"""
409-
if fnum_limits[1] != fnum_limits[0]:
409+
if (fnum_limits[1] == fnum_limits[0]) and (tuning_index == 1):
410410
tuning_index = 2
411411

412412
if tuning_index == 1:

0 commit comments

Comments
 (0)