From b624d290d05a652adbe3d02caf5668e84eafc870 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 11 Sep 2020 00:11:05 +0100 Subject: [PATCH] m/3dof: Add filter fifos to variable tracking code --- src/xrt/auxiliary/math/m_imu_3dof.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xrt/auxiliary/math/m_imu_3dof.c b/src/xrt/auxiliary/math/m_imu_3dof.c index 825ad36a4..2ec3890db 100644 --- a/src/xrt/auxiliary/math/m_imu_3dof.c +++ b/src/xrt/auxiliary/math/m_imu_3dof.c @@ -48,6 +48,10 @@ void m_imu_3dof_add_vars(struct m_imu_3dof *f, void *root, const char *prefix) { char tmp[512]; + snprintf(tmp, sizeof(tmp), "%sff.world_accel", prefix); + u_var_add_ro_ff_vec3_f32(root, f->word_accel_ff, tmp); + snprintf(tmp, sizeof(tmp), "%sff.gyro", prefix); + u_var_add_ro_ff_vec3_f32(root, f->gyro_ff, tmp); snprintf(tmp, sizeof(tmp), "%slast.timestamp_ns", prefix); u_var_add_ro_u64(root, &f->last.timestamp_ns, tmp);