Fixed bug on DQT on custom mode #8289
Merged
Merged
Conversation
ev-mp
suggested changes
Feb 1, 2021
| auto depth_profile = dev.get_stream(RS2_STREAM_DEPTH); | ||
| auto w = depth_profile.as<video_stream_profile>().width(); | ||
| auto h = depth_profile.as<video_stream_profile>().height(); | ||
| depth_sensor.set_option(RS2_OPTION_SENSOR_MODE, resolution_from_width_height(w, h)); |
Contributor
There was a problem hiding this comment.
The option is L500-only. Will throws with D400
ev-mp
reviewed
Feb 1, 2021
ev-mp
left a comment
Contributor
There was a problem hiding this comment.
Looks Ok, some minor fix is required
| { RS2_L500_VISUAL_PRESET_LOW_AMBIENT, { RS2_DIGITAL_GAIN_LOW, defualt_laser } }, | ||
| { RS2_L500_VISUAL_PRESET_SHORT_RANGE, { RS2_DIGITAL_GAIN_LOW, max_laser } } }; | ||
| { RS2_L500_VISUAL_PRESET_LOW_AMBIENT, { RS2_DIGITAL_GAIN_LOW, max_laser } }, | ||
| { RS2_L500_VISUAL_PRESET_SHORT_RANGE, { RS2_DIGITAL_GAIN_LOW, defualt_laser } } }; |
| @@ -52,8 +52,8 @@ const std::map< rs2_l500_visual_preset, std::pair< rs2_digital_gain, presets_use | |||
| preset_to_gain_and_laser_map | |||
| = { { RS2_L500_VISUAL_PRESET_NO_AMBIENT, { RS2_DIGITAL_GAIN_HIGH, defualt_laser } }, | |||
ev-mp
approved these changes
Feb 1, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In custom mode we need to update the sensor with sensor mode before start.