Skip to content

Fixes to calibration script with variable focus - #1253

Merged
MaticTonin merged 2 commits into
luxonis:mainfrom
mikolajz:mikolajz-fix-focus
Sep 24, 2026
Merged

MaticTonin merged 2 commits into
luxonis:mainfrom
mikolajz:mikolajz-fix-focus

Conversation

@mikolajz

@mikolajz mikolajz commented Sep 23, 2026 •

Copy link
Copy Markdown

Purpose

Fix bugs when calibrating variable focus cameras

The bugs are:

  • The code user focus set to 0, but record the calibration was done at 135.
  • The flag to set custom focus didn't work due to inconcistency in usage of camera name vs socket name.

Specification

None / not applicable

Dependencies & Potential Impact

None / not applicable

Deployment Plan

None / not applicable

Testing & Validation

None / not applicable

AI Usage

Problems found and reviewed by Claude. Code written manually.

Assisted-by:claude-5-fable
Assisted-by:claude-5.5-opus

Submitted code was reviewed by a human: YES

The author is taking the responsibility for the contribution: YES

The script stores 135 in the calibration output, but actually used 0.
Currently this line used socket name, while calibate:1114 used camera name.
With this change, this is consistent and in line with parameter documentation.
@mikolajz mikolajz changed the title Fixes to calibration script with autofocus Fixes to calibration script with variable focus Sep 23, 2026

@MaticTonin MaticTonin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good and correct, there should not be int.

@MaticTonin
MaticTonin merged commit 112b17c into luxonis:main Sep 24, 2026
1 of 3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants