d/vive/controller: Uncomment and improve spew prints.

This commit is contained in:
Lubosz Sarnecki 2020-06-26 14:16:12 +02:00
parent d047ce8af4
commit 1071d7a50b

View file

@ -563,10 +563,11 @@ vive_controller_handle_imu_sample(struct vive_controller_device *d,
scale * d->imu.gyro_scale.z * gyro[2] - d->imu.gyro_bias.z,
};
VIVE_CONTROLLER_SPEW(d, "ACC %f %f %f", acceleration.x, acceleration.y,
acceleration.z);
VIVE_CONTROLLER_SPEW(d, "GYRO %f %f %f", angular_velocity.x,
angular_velocity.y, angular_velocity.z);
/*
VIVE_CONTROLLER_SPEW(d, "ACC %f %f %f", acceleration.x,
acceleration.y, acceleration.z); VIVE_CONTROLLER_SPEW(d, "GYRO %f %f
%f", angular_velocity.x, angular_velocity.y, angular_velocity.z);
*/
if (d->variant == CONTROLLER_VIVE_WAND) {
@ -693,6 +694,12 @@ vive_controller_decode_watchmanv1(struct vive_controller_device *d,
// clang-format on
VIVE_CONTROLLER_SPEW(d,
"battery %d trigger %d trackpad %d "
"buttons %d imu %d",
has_battery, has_trigger, has_trackpad,
has_buttons, has_imu);
buf++;
if (has_battery) {