Skip to content

enable calib for D457 and advanced tests - #14672

Merged
Nir-Az merged 5 commits into
realsenseai:developmentfrom
alexkunin-gh:akunin/calib_d457
Feb 1, 2026
Merged

Nir-Az merged 5 commits into
realsenseai:developmentfrom
alexkunin-gh:akunin/calib_d457

Conversation

@alexkunin-gh

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 29, 2026 16:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request enables calibration support for the D457 device and re-enables advanced calibration tests that were previously disabled. The changes add default calibration parameters to the JSON configurations and uncomment test code that was temporarily disabled for lab stabilization.

Changes:

  • Added default calibration parameters (speed, step count, accuracy, etc.) to tare and on-chip calibration JSON configurations
  • Re-enabled advanced calibration tests by uncommenting test code blocks
  • Fixed a spelling error and adjusted test thresholds for improved calibration validation

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
unit-tests/live/calib/test-tare-calibrations.py Added default calibration parameters to tare calibration JSON
unit-tests/live/calib/test-occ-calibrations.py Added default calibration parameters and uncommented test code
unit-tests/live/calib/test-advanced-tare-calibrations.py Fixed spelling error in comment
unit-tests/live/calib/test-advanced-occ-calibrations.py Updated test device filter, adjusted thresholds, simplified retry logic, and uncommented test code

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"""
temprorary disabled on mipi devices to stabilize the lab

# temprorary disabled on mipi devices to stabilize the lab

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

Corrected spelling of 'temprorary' to 'temporarily'.

Suggested change
# temprorary disabled on mipi devices to stabilize the lab
# temporarily disabled on mipi devices to stabilize the lab

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Co-Pilot is right :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

PIXEL_CORRECTION = -1.0 # pixel shift to apply to principal point
EPSILON = 0.001 # distance comparison tolerance
EPSILON = 0.5 # half of PIXEL_CORRECTION tolerance
DIFF_THRESHOLD = 0.001 # minimum change expected after OCC calibration

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

The comment describes this as 'minimum change expected after OCC calibration', but the variable name and usage at line 193 suggest it represents the threshold for detecting meaningful changes. Consider clarifying whether this is the minimum expected change or the threshold below which changes are considered insignificant.

Suggested change
DIFF_THRESHOLD = 0.001 # minimum change expected after OCC calibration
DIFF_THRESHOLD = 0.001 # threshold below which OCC-induced changes are considered insignificant

Copilot uses AI. Check for mistakes.
@alexkunin-gh
alexkunin-gh requested a review from Nir-Az January 30, 2026 21:08
modified_axis_val = mod_right_pp[1]
returned_modified_axis_val = modified_ppy if modify_ppy else modified_ppx
if abs(modified_axis_val - returned_modified_axis_val) > EPSILON:
if abs(modified_axis_val - returned_modified_axis_val) > DIFF_THRESHOLD: # verify that we fix at least 1/2 of modification

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fix, comment is wrong

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

"""
temprorary disabled on mipi devices to stabilize the lab

# temporarily disabled on mipi devices to stabilize the lab

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Remove please

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Nir-Az
Nir-Az previously approved these changes Feb 1, 2026

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved with a few small minor comments

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Nir-Az
Nir-Az merged commit de0a09a into realsenseai:development Feb 1, 2026
26 of 27 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.

3 participants