100 #define DAYDREAM_SPEW(c, ...) \ 102 if (c->print_spew) { \ 103 fprintf(stderr, "%s - ", __func__); \ 104 fprintf(stderr, __VA_ARGS__); \ 105 fprintf(stderr, "\n"); \ 109 #define DAYDREAM_DEBUG(c, ...) \ 111 if (c->print_debug) { \ 112 fprintf(stderr, "%s - ", __func__); \ 113 fprintf(stderr, __VA_ARGS__); \ 114 fprintf(stderr, "\n"); \ 118 #define DAYDREAM_ERROR(c, ...) \ 120 fprintf(stderr, "%s - ", __func__); \ 121 fprintf(stderr, __VA_ARGS__); \ 122 fprintf(stderr, "\n"); \ Definition: daydream_device.h:51
A IMU fusion specially made for 3dof devices.
Definition: daydream_device.h:41
struct xrt_vec3_i32 gyro
Definition: daydream_device.h:33
Definition: daydream_device.h:48
This is a common IMU pre-filter which takes raw 'ticks' from an IMU measurement and converts it into ...
Definition: m_imu_pre.h:46
A parsed sample of accel and gyro.
Definition: daydream_device.h:30
Wrapper around OS threading native functions.
bool print_debug
Definition: daydream_device.h:85
Header defining a xrt HMD device.
struct daydream_device * daydream_device_create(struct os_ble_device *ble, bool print_spew, bool print_debug)
Definition: daydream_device.c:339
Definition: daydream_device.h:52
A 2 element vector with 32 bit integers.
Definition: xrt_defines.h:157
All in one helper that handles locking, waiting for change and starting a thread. ...
Definition: os_threading.h:151
A 3 element vector with 32 bit integers.
Definition: xrt_defines.h:145
Definition: daydream_device.h:49
Definition: daydream_device.h:40
Definition: daydream_device.h:50
bool print_spew
Definition: daydream_device.h:84
daydream_button_bits
Definition: daydream_device.h:37
Definition: daydream_device.h:42
struct vive_imu_sample sample[3]
Definition: vive_protocol.h:210
Definition: daydream_device.h:64
void lock(struct oxr_instance *inst)
Definition: oxr_event.c:30
A wrapper around a native mutex.
Definition: os_threading.h:41
struct xrt_vec3_i32 accel
Definition: daydream_device.h:32
Representing a single ble notify attribute on a device.
Definition: os_ble.h:27
Definition: daydream_device.h:39
struct os_ble_device * ble
Definition: daydream_device.h:67
A single HMD or input device.
Definition: xrt_device.h:202
C interface to math library.
Definition: m_imu_3dof.h:34
struct xrt_vec3_i32 mag
Definition: daydream_device.h:34
daydream_button_masks
Definition: daydream_device.h:46
bool last
Definition: daydream_device.h:89
Wrapper around OS native BLE functions.
Definition: daydream_device.h:43