d/dai: Translation is in cm but in m in Monado

This commit is contained in:
Moses Turner 2022-03-22 17:36:19 +00:00 committed by Jakob Bornecrantz
parent 9417fe8d7f
commit 0a843eb20f

View file

@ -213,7 +213,8 @@ depthai_get_gray_cameras_calibration(struct depthai_fs *depthai, struct t_stereo
// Copy translation
for (uint32_t i = 0; i < 3; i++) {
c->camera_translation[i] = extrinsics[i][3];
// Is in centimeters, odd. Monado uses meters.
c->camera_translation[i] = extrinsics[i][3] / 100.0f;
}
// Copy rotation