mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
m/3dof: Add filter fifos to variable tracking code
This commit is contained in:
parent
f7ff6c08ed
commit
b624d290d0
|
@ -48,6 +48,10 @@ void
|
||||||
m_imu_3dof_add_vars(struct m_imu_3dof *f, void *root, const char *prefix)
|
m_imu_3dof_add_vars(struct m_imu_3dof *f, void *root, const char *prefix)
|
||||||
{
|
{
|
||||||
char tmp[512];
|
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);
|
snprintf(tmp, sizeof(tmp), "%slast.timestamp_ns", prefix);
|
||||||
u_var_add_ro_u64(root, &f->last.timestamp_ns, tmp);
|
u_var_add_ro_u64(root, &f->last.timestamp_ns, tmp);
|
||||||
|
|
Loading…
Reference in a new issue