Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reread calibration tables after applying OCC calibration #13524

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

OhadMeir
Copy link
Contributor

Tracked on [LRS-490]

@OhadMeir OhadMeir requested a review from Nir-Az November 19, 2024 08:26
@@ -432,6 +432,12 @@ namespace librealsense
void d500_auto_calibrated::write_calibration() const
{
_calib_engine->write_calibration(_curr_calibration);

for( auto & cb : _depth_write_callbacks )
Copy link
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
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

@@ -463,6 +469,12 @@ namespace librealsense
void d500_auto_calibrated::reset_to_factory_calibration() const
{
throw not_implemented_exception(rsutils::string::from() << "Reset to factory Calibration not applicable for this device");

// Uncomment if function implemented
Copy link
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
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

@Nir-Az Nir-Az merged commit a75366f into IntelRealSense:development Nov 21, 2024
23 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