Skip to content

Commit 6b332b9

Browse files
committed
Add UVC support for ZED2i
1 parent d689961 commit 6b332b9

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

examples/zed_oc_control_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
114114

115115
// ----> Set Video parameters
116116
sl_oc::video::VideoParams params;
117-
params.res = sl_oc::video::RESOLUTION::HD2K;
117+
params.res = sl_oc::video::RESOLUTION::VGA;
118118
params.fps = sl_oc::video::FPS::FPS_15;
119119
params.verbose = verbose;
120120
// <---- Set Video parameters

include/defines.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ static const uint16_t SL_USB_PROD_ZED_M_REVA = 0xf680; //!< Old ZED-M bina
7777
static const uint16_t SL_USB_PROD_ZED_REVB = 0xf582; //!< CBS ZED Firmware Product ID
7878
static const uint16_t SL_USB_PROD_ZED_M_REVB = 0xf682; //!< CBS ZED-M Firmware Product ID
7979
static const uint16_t SL_USB_PROD_ZED_2_REVB = 0xf780; //!< CBS ZED 2 Firmware Product ID
80+
static const uint16_t SL_USB_PROD_ZED_2i = 0xf880; //!< CBS ZED 2i Firmware Product ID
8081
static const uint16_t SL_USB_PROD_MCU_ZEDM_REVA= 0xf681; //!< MCU sensor device for ZED-M
8182
static const uint16_t SL_USB_PROD_MCU_ZED2_REVA = 0xf781; //!< MCU sensor device for ZED2
83+
static const uint16_t SL_USB_PROD_MCU_ZED2i_REVA = 0xf881; //!< MCU sensor device for ZED2i
8284

8385
enum VERBOSITY {
8486
NONE = 0,

include/videocapture_def.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ enum class SL_DEVICE {
4040
ZED_CBS, //!< ZED new FW
4141
ZED_M_CBS, //!< ZED Mini new FW
4242
ZED_2, //!< ZED2
43+
ZED_2i, //!< ZED2
4344
NONE
4445
};
4546

src/videocapture.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ SL_DEVICE VideoCapture::getCameraModel( std::string dev_name)
742742
camera_device = SL_DEVICE::ZED_M_CBS;
743743
else if (pid == SL_USB_PROD_ZED_2_REVB && vid == SL_USB_VENDOR)
744744
camera_device = SL_DEVICE::ZED_2;
745+
else if (pid == SL_USB_PROD_ZED_2i && vid == SL_USB_VENDOR)
746+
camera_device = SL_DEVICE::ZED_2i;
745747

746748
return camera_device;
747749
}

0 commit comments

Comments
 (0)