-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Close laser emitter on Focal Length calibration #11995
Conversation
How hard it is to add some kind of UT for this? |
I Don't think if it possible since viewer code is not reflected in the API |
No python API for it? python calibration example? |
common/on-chip-calib.cpp
Outdated
_sub->s->set_option(RS2_OPTION_EMITTER_ENABLED, 0.0f); | ||
if (_sub->s->supports(RS2_OPTION_THERMAL_COMPENSATION)) | ||
_sub->s->set_option(RS2_OPTION_THERMAL_COMPENSATION, 0.f); | ||
// TODO - When implementing UV mapping - should remove from here and handle in process_flow() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this means?
UV mapping is implemented for D400 devices, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like discussed lets rephrased to UV mapping based calibration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rephrased to UV mapping calibration
if (_sub->s->supports(RS2_OPTION_THERMAL_COMPENSATION)) | ||
_sub->s->set_option(RS2_OPTION_THERMAL_COMPENSATION, 0.f); | ||
// TODO - When implementing UV mapping - should remove from here and handle in process_flow() | ||
set_laser_emitter_state( off_value ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you removed the supports
check, why?
Don't needed anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add it inside the helper funcs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is checked in the helper functions. More "clean" this way, and less code repetitions
common/on-chip-calib.cpp
Outdated
@@ -516,8 +565,8 @@ namespace rs2 | |||
break; | |||
} | |||
|
|||
if (_sub->s->supports(RS2_OPTION_EMITTER_ENABLED)) | |||
_sub->s->set_option(RS2_OPTION_EMITTER_ENABLED, 0.0f); | |||
// TODO - When implementing UV mapping - should remove from here and handle in process_flow() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same, moved into set_laser_emitter_state
function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great
Close laser emitter during FL calibration and verify other calibration work according to table by algo team
Tracked on [LRS-666]