Skip to content
Merged
2 changes: 1 addition & 1 deletion cmake/Depthai/DepthaiDeviceSideConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")

# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "7a638aee617e9932652076ba4a7a1862ed63f186")
set(DEPTHAI_DEVICE_SIDE_COMMIT "fb03f31518376a2102caff9f9a07cc5dd7a1b28f")

# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
2 changes: 1 addition & 1 deletion include/depthai/common/EepromData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct EepromData {
Extrinsics housingExtrinsics;
std::vector<uint8_t> miscellaneousData;
bool stereoUseSpecTranslation{true};
bool stereoEnableDistortionCorrection{false};
bool stereoEnableDistortionCorrection{true};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should change this default here

CameraBoardSocket verticalCameraSocket = dai::CameraBoardSocket::AUTO;
};

Expand Down
3 changes: 3 additions & 0 deletions include/depthai/pipeline/node/DynamicCalibrationNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ class DynamicCalibration : public DeviceNodeCRTP<DeviceNode, DynamicCalibration,
* - Reseting of data
*/
bool runOnHostVar = true;

// When old calibration is encountered, issue a warning once
bool oldCalibrationWarningIssued = false;
};

} // namespace node
Expand Down
5 changes: 3 additions & 2 deletions src/pipeline/node/DynamicCalibrationNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,9 @@ DynamicCalibration::ErrorCode DynamicCalibration::initializePipeline(const std::
calibrationHandler = daiDevice->getCalibration();
auto eepromData = calibrationHandler.getEepromData();
auto platform = daiDevice->getPlatform();
if(platform == dai::Platform::RVC2 && (!eepromData.stereoEnableDistortionCorrection || eepromData.stereoUseSpecTranslation)) {
throw std::runtime_error("The calibration on the device is too old to perform DynamicCalibration, full re-calibration required!");
if(platform == dai::Platform::RVC2 && !eepromData.stereoEnableDistortionCorrection && !oldCalibrationWarningIssued) {
logger->warn("The calibration on the device is too old to perform DynamicCalibration, full re-calibration is recommended!");
oldCalibrationWarningIssued = true;
}
auto [calibA, calibB] = DclUtils::convertDaiCalibrationToDcl(calibrationHandler, daiSocketA, daiSocketB, resolutionA, resolutionB);

Expand Down