-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Add support for D436 #13855
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
Add support for D436 #13855
Conversation
+ /* Intel D436 depth camera */ | ||
+ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | ||
+ | USB_DEVICE_ID_MATCH_INT_INFO, | ||
+ .idVendor = 0x8086, |
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.
Does tabs/spaces number matter here?
@@ -361,7 +361,41 @@ namespace librealsense | |||
p.depth_gain.gain = 16.f; | |||
} | |||
|
|||
void default_430(preset& p) | |||
void default_430_color_only(preset& p) |
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.
Names are misleading. Do you want to set RGB sensor separately from Depth sensor? Call is default_xxx_rgb
and default_xxx_depth
.
Notice p.color_control
and p.cc
are actually depth sensor settings, see https://github.com/IntelRealSense/librealsense/blob/development/src/ds/advanced_mode/advanced_mode.cpp#L787
{RS436_PID, "5.16.3.3" }, // TODO - update final required FW version | ||
{RS416_PID, "5.8.15.0" }, |
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.
Is the "TODO" still relevant?
@@ -1356,6 +1233,15 @@ namespace librealsense | |||
return matcher_factory::create(RS2_MATCHER_DEFAULT, streams); | |||
} | |||
|
|||
std::shared_ptr<matcher> rs436_device::create_matcher(const frame_holder& frame) const | |||
{ | |||
std::vector<stream_interface*> streams = { _depth_stream.get() , _left_ir_stream.get() , _right_ir_stream.get(), _color_stream.get() }; |
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.
Why do we need all this code duplication?
Can rs436/435i/430i_device etc call a common "create_mm_streams" function?
@@ -267,7 +267,8 @@ namespace rs2 | |||
|
|||
auto dev_name = get_device_name(dev); | |||
|
|||
if( ( dev.is<update_device>() || is_upgradeable( fw, recommended_fw_ver) ) ) | |||
// TODO - D436. Don't suggest to update FW as it doesn't support D436. Revert after next release with bundle supporting FW | |||
if( ( dev.is<update_device>() || is_upgradeable( fw, recommended_fw_ver) ) && pid != "1156") //0x1156 is pid for D436 |
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.
Better to use camera name, not PID.
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.
As discussed, PR does not introduce bugs. Comments will be fixed in a future PR, a task will be opened for follow up.
Tracked on [RSDEV-3024]