The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/dai: Fix conversion warnings

authored by

Jakob Bornecrantz and committed by
Moses Turner
4814f627 504a2a28

+1 -1
+1 -1
src/xrt/drivers/depthai/depthai_driver.cpp
··· 482 482 ts += ts_accel / 4; 483 483 ts += ts_gyro / 4; 484 484 485 - float diff_in_ms = fabs(diff) / (double)U_TIME_1MS_IN_NS; 485 + float diff_in_ms = (float)(abs((double)diff) / (double)U_TIME_1MS_IN_NS); 486 486 if (diff_in_ms > 2.5) { 487 487 DEPTHAI_WARN(depthai, "Accel and gyro samples are too far apart - %f ms!", diff_in_ms); 488 488 }