Skip to content

Reread calibration tables after applying OCC calibration - #13524

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
OhadMeir:development
Nov 21, 2024
Merged

Reread calibration tables after applying OCC calibration#13524
Nir-Az merged 1 commit into
realsenseai:developmentfrom
OhadMeir:development

Conversation

@OhadMeir

Copy link
Copy Markdown
Contributor

Tracked on [LRS-490]

@OhadMeir
OhadMeir requested a review from Nir-Az November 19, 2024 08:26
Comment thread src/auto-calibrated-device.h
{
_calib_engine->write_calibration(_curr_calibration);

for( auto & cb : _depth_write_callbacks )

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.

The write does it inside no?

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.

Did not understand. _calib_engine->write_calibration() uses a HWMC to write the data to the camera.
The callbacks are to notify users - in this case the device object

{
throw not_implemented_exception(rsutils::string::from() << "Reset to factory Calibration not applicable for this device");

// Uncomment if function implemented

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.

Can you explain?

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.

Currently D500 calibration logic does not implement (no need) resetting to factory calibration. I just wanted that, if and whenever it might be implemented, we won't forget notifying the callbacks

Comment thread src/ds/d500/d500-auto-calibration.cpp
@Nir-Az
Nir-Az merged commit a75366f into realsenseai:development Nov 21, 2024
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