fix: add checks for AE mode compatibility with Gemini 305 PID

This commit is contained in:
ob-yalian
2026-01-13 18:02:15 +08:00
parent 69c1daa678
commit a8e77fc8c7
+14
View File
@@ -493,6 +493,20 @@ void OBCameraNode::setAeRoiCallback(const std::shared_ptr<SetArrays ::Request>&
std::shared_ptr<SetArrays::Response>& response, std::shared_ptr<SetArrays::Response>& response,
const stream_index_pair& stream_index) { const stream_index_pair& stream_index) {
auto stream = stream_index.first; auto stream = stream_index.first;
if (device_->getDeviceInfo()->getPid() == GEMINI_305_PID &&
(stream != OB_STREAM_COLOR && ae_mode_ == "colorbased")) {
response->success = false;
response->message =
"AE MODE is colorbased, other sensors setting is not supported on Gemini305";
return;
}
if (device_->getDeviceInfo()->getPid() == GEMINI_305_PID &&
(stream != OB_STREAM_DEPTH && ae_mode_ == "depthbased")) {
response->success = false;
response->message =
"AE MODE is depthbased, other sensors sensor setting is not supported on Gemini305";
return;
}
auto config = OBRegionOfInterest(); auto config = OBRegionOfInterest();
uint32_t data_size = sizeof(config); uint32_t data_size = sizeof(config);
try { try {