56 #define HDK_SPEW(c, ...) \ 58 if (c->print_spew) { \ 59 fprintf(stderr, "%s - ", __func__); \ 60 fprintf(stderr, __VA_ARGS__); \ 61 fprintf(stderr, "\n"); \ 64 #define HDK_DEBUG(c, ...) \ 66 if (c->print_debug) { \ 67 fprintf(stderr, "%s - ", __func__); \ 68 fprintf(stderr, __VA_ARGS__); \ 69 fprintf(stderr, "\n"); \ 73 #define HDK_ERROR(c, ...) \ 75 fprintf(stderr, "%s - ", __func__); \ 76 fprintf(stderr, __VA_ARGS__); \ 77 fprintf(stderr, "\n"); \ Definition: hdk_device.h:23
bool print_spew
Definition: hdk_device.h:35
bool quat_valid
Definition: hdk_device.h:41
bool print_debug
Definition: hdk_device.h:36
HDK_VARIANT
Definition: hdk_device.h:19
struct os_hid_device * dev
Definition: hdk_device.h:30
Definition: hdk_device.h:21
A quaternion with single floats.
Definition: xrt_defines.h:99
Wrapper around OS threading native functions.
struct xrt_device base
Definition: hdk_device.h:29
struct hdk_device * hdk_device_create(struct os_hid_device *dev, enum HDK_VARIANT variant, bool print_spew, bool print_debug)
Definition: hdk_device.cpp:311
All in one helper that handles locking, waiting for change and starting a thread. ...
Definition: os_threading.h:151
enum HDK_VARIANT variant
Definition: hdk_device.h:31
bool disconnect_notified
Definition: hdk_device.h:37
Representing a single hid interface on a device.
Definition: os_hid.h:26
struct os_thread_helper imu_thread
Definition: hdk_device.h:33
Definition: hdk_device.h:24
Definition: hdk_device.h:22
Definition: hdk_device.h:27
A single HMD or input device.
Definition: xrt_device.h:202
struct xrt_quat quat
Definition: hdk_device.h:39
struct xrt_quat ang_vel_quat
Definition: hdk_device.h:40