-
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
Emitter On/Off #2829
Emitter On/Off #2829
Conversation
…n the calibration table.
…ersintel/librealsense into daversintel-emitter_onoff_and_intrinsics
The changes are OK with me. But it still better to show it with the viewer. |
src/ds5/ds5-options.cpp
Outdated
command cmd(ds::GET_PWM_ON_OFF); | ||
auto res = _hwm.send(cmd); | ||
if (res.empty()) | ||
throw invalid_value_exception("external_sync_mode::query result is empty!"); |
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.
C&P
else | ||
{ | ||
// Intrinsics not found in the calibration table - use the generic calculation | ||
ds5_rect_resolutions resolution = res_1920_1080; |
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.
The generic part assumes the sensor uses FullHd for calibration with 16/9 aspect. But for other sensors, e.g. AWGC 1MP with 1280X800 16/10 aspect ratio it will produce distortions during uv mapping, for instance.
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.
We can add the code to validate entry for res_1920_1080 and throw exception if the entry is not used for calibration or not valid.
Based on #2699
@daversintel please review and comment if my proposed changes are acceptable:
experimental
predicate onfirmware_version
, to for now only allow this feature for firmware versions that support it.RS2_OPTION_EMITTER_ON_OFF
for simplicity.