Skip to content

Conversation

@OhadMeir
Copy link
Contributor

Tracked on DSO-18454

@OhadMeir OhadMeir requested a review from Nir-Az September 29, 2022 12:28
@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
Contributor

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 realsenseai: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