fix: update device PIDs and improve logging messages for Gemini series

This commit is contained in:
ob-yalian
2026-04-13 20:47:25 +08:00
parent fcd741f541
commit f11e94f452
5 changed files with 42 additions and 27 deletions
+4 -5
View File
@@ -3155,8 +3155,7 @@ void OBCameraNode::setDepthAutoExposureROI() {
return;
}
if (isGemini305SeriesPID(pid_) && ae_reference_stream_ == "color") {
RCLCPP_WARN_STREAM(logger_,
"Skip setting depth AE ROI because AE Reference Stream is color");
RCLCPP_WARN_STREAM(logger_, "Skip setting depth AE ROI because AE Reference Stream is color");
depth_roi_has_run = true;
return;
}
@@ -3201,8 +3200,7 @@ void OBCameraNode::setColorAutoExposureROI() {
return;
}
if (isGemini305SeriesPID(pid_) && ae_reference_stream_ == "depth") {
RCLCPP_WARN_STREAM(logger_,
"Skip setting color AE ROI because AE Reference Stream is depth");
RCLCPP_WARN_STREAM(logger_, "Skip setting color AE ROI because AE Reference Stream is depth");
color_roi_has_run = true;
return;
}
@@ -4435,7 +4433,8 @@ bool OBCameraNode::isGemini335PID(uint32_t pid) {
pid == GEMINI_335L_PID || pid == GEMINI_330L_PID || pid == GEMINI_336L_PID ||
pid == GEMINI_335LG_PID || pid == GEMINI_336LG_PID || pid == GEMINI_335LE_PID ||
pid == GEMINI_336LE_PID || pid == CUSTOM_ADVANTECH_GEMINI_336_PID ||
pid == CUSTOM_ADVANTECH_GEMINI_336L_PID || pid == GEMINI_338_PID;
pid == CUSTOM_ADVANTECH_GEMINI_336L_PID || pid == GEMINI_338_PID ||
pid == GEMINI_338L_PID || pid == GEMINI_338LE_PID || pid == GEMINI_338LG_PID;
}
bool OBCameraNode::isGemini435LePID(uint32_t pid) { return pid == GEMINI_435Le_PID; }