mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
d/dai: Fix conversion warnings
This commit is contained in:
parent
504a2a288e
commit
4814f627c6
|
@ -482,7 +482,7 @@ depthai_do_one_imu_frame(struct depthai_fs *depthai)
|
|||
ts += ts_accel / 4;
|
||||
ts += ts_gyro / 4;
|
||||
|
||||
float diff_in_ms = fabs(diff) / (double)U_TIME_1MS_IN_NS;
|
||||
float diff_in_ms = (float)(abs((double)diff) / (double)U_TIME_1MS_IN_NS);
|
||||
if (diff_in_ms > 2.5) {
|
||||
DEPTHAI_WARN(depthai, "Accel and gyro samples are too far apart - %f ms!", diff_in_ms);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue