fix: initialize device_preset to default and improve stream handling for Gemini 305

This commit is contained in:
ob-yalian
2026-01-15 14:46:10 +08:00
parent 4b880723a2
commit 4c77fdf206
3 changed files with 66 additions and 33 deletions
+4 -1
View File
@@ -1315,6 +1315,10 @@ void OBCameraNodeDriver::startDevice(const std::shared_ptr<ob::DeviceList> &list
if (GEMINI_335LG_PID == pid) {
ob_camera_node_->startGmslTrigger();
}
if (pid == GEMINI_305_PID) {
// Fixing 305 hot-swap not outputting power
ob_camera_node_->startStreams();
}
} catch (ob::Error &e) {
RCLCPP_ERROR_STREAM(logger_, "Failed to initialize device " << e.getMessage());
start_device_failed = true;
@@ -1333,7 +1337,6 @@ void OBCameraNodeDriver::startDevice(const std::shared_ptr<ob::DeviceList> &list
}
reset_device_cond_.notify_all();
}
ob_camera_node_->startStreams();
}
void OBCameraNodeDriver::updatePresetFirmware(std::string path) {
if (path.empty()) {