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

Fix DSO-18454 laser turned off after calibration #10948

Merged
merged 3 commits into from
Oct 27, 2022

Conversation

OhadMeir
Copy link
Contributor

Tracked on DSO-18454

@Nir-Az Nir-Az requested a review from ev-mp October 2, 2022 08:14
Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

LGTM, @ev-mp can you take a look too?
Thanks

Comment on lines 1132 to 1142
if (_sub->s->supports( RS2_OPTION_EMITTER_ENABLED ))
{
laser_status_prev = _sub->s->get_option( RS2_OPTION_EMITTER_ENABLED );
_sub->s->set_option( RS2_OPTION_EMITTER_ENABLED, 0.0f );
}
if (_sub->s->supports( RS2_OPTION_THERMAL_COMPENSATION ))
{
thermal_loop_prev = _sub->s->get_option( RS2_OPTION_THERMAL_COMPENSATION );
_sub->s->set_option( RS2_OPTION_THERMAL_COMPENSATION, 0.f );
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

By moving the code here those set/get options will be executed every iteration cycle (this is part of the main loop)- this may affect performance.
Imho, the best option is to create kind of LUT that for each state will define the state of laser/AE/Thermal loop controls, and that we'll use some 'enter_state(calib_1) /exist_state(calib_1)'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is called only once
Later on calibrate calls run_on_chip_calibration and inside that function implementation there is a loop

@Nir-Az Nir-Az merged commit 6b9ed48 into IntelRealSense:development Oct 27, 2022
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