The open source OpenXR runtime
0
fork

Configure Feed

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

d/wmr: Fix unused corrected IMU timestamp

+2 -1
+2 -1
src/xrt/drivers/wmr/wmr_source.c
··· 120 120 const double IMU_FREQ = 250; //!< @todo use 1000 if "average_imus" is false 121 121 timepoint_ns now_hw = s->timestamp_ns; 122 122 timepoint_ns now_mono = (timepoint_ns)os_monotonic_get_ns(); 123 - timepoint_ns ts = m_clock_offset_a2b(IMU_FREQ, now_hw, now_mono, &ws->hw2mono); 123 + s->timestamp_ns = m_clock_offset_a2b(IMU_FREQ, now_hw, now_mono, &ws->hw2mono); 124 124 125 + timepoint_ns ts = s->timestamp_ns; 125 126 struct xrt_vec3_f64 a = s->accel_m_s2; 126 127 struct xrt_vec3_f64 w = s->gyro_rad_secs; 127 128 WMR_TRACE(ws, "imu t=%ld a=(%f %f %f) w=(%f %f %f)", ts, a.x, a.y, a.z, w.x, w.y, w.z);