Skip to content

Commit 162c7a7

Browse files
author
Matevz Morato
committed
Only error out for legacy calibration on RVC2
1 parent 4ce5bbf commit 162c7a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pipeline/node/DynamicCalibrationNode.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <pipeline/ThreadedNodeImpl.hpp>
55

66
#include "depthai/common/CameraBoardSocket.hpp"
7+
#include "depthai/depthai.hpp"
78
#include "depthai/pipeline/datatype/MessageGroup.hpp"
89
#include "depthai/utility/matrixOps.hpp"
910
#include "depthai/utility/spimpl.h"
@@ -399,7 +400,8 @@ DynamicCalibration::ErrorCode DynamicCalibration::initializePipeline(const std::
399400

400401
calibrationHandler = daiDevice->getCalibration();
401402
auto eepromData = calibrationHandler.getEepromData();
402-
if(!eepromData.stereoEnableDistortionCorrection || eepromData.stereoUseSpecTranslation) {
403+
auto platform = daiDevice->getPlatform();
404+
if(platform == dai::Platform::RVC2 && (!eepromData.stereoEnableDistortionCorrection || eepromData.stereoUseSpecTranslation)) {
403405
throw std::runtime_error("The calibration on the device is too old to perform DynamicCalibration, full re-calibration required!");
404406
}
405407
auto [calibA, calibB] = DclUtils::convertDaiCalibrationToDcl(calibrationHandler, daiSocketA, daiSocketB, width, height);

0 commit comments

Comments
 (0)