Monado OpenXR Runtime
Data Structures | Macros | Functions
arduino_device.c File Reference

Arduino felxable input device code. More...

#include "xrt/xrt_device.h"
#include "xrt/xrt_prober.h"
#include "xrt/xrt_tracking.h"
#include "os/os_ble.h"
#include "os/os_time.h"
#include "os/os_threading.h"
#include "math/m_api.h"
#include "math/m_imu_pre.h"
#include "math/m_imu_3dof.h"
#include "util/u_var.h"
#include "util/u_time.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_bitwise.h"
#include "arduino_interface.h"
#include <stdio.h>
#include <math.h>
#include <assert.h>
Include dependency graph for arduino_device.c:

Data Structures

struct  arduino_parsed_sample
 A parsed sample of accel and gyro. More...
 
struct  arduino_parsed_input
 
struct  arduino_device
 

Macros

#define ARDUINO_SPEW(c, ...)
 
#define ARDUINO_DEBUG(c, ...)
 
#define ARDUINO_ERROR(c, ...)
 
#define DEG_TO_RAD   ((double)M_PI / 180.0)
 

Functions

struct xrt_devicearduino_device_create (struct os_ble_device *ble, bool print_spew, bool print_debug)
 Create a arduino device from a ble notify. More...
 

Detailed Description

Arduino felxable input device code.

Author
Pete Black pete..nosp@m.blac.nosp@m.k@col.nosp@m.labo.nosp@m.ra.co.nosp@m.m
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ ARDUINO_DEBUG

#define ARDUINO_DEBUG (   c,
  ... 
)
Value:
do { \
if (c->print_debug) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)

◆ ARDUINO_ERROR

#define ARDUINO_ERROR (   c,
  ... 
)
Value:
do { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (false)

◆ ARDUINO_SPEW

#define ARDUINO_SPEW (   c,
  ... 
)
Value:
do { \
if (c->print_spew) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)

◆ DEG_TO_RAD

#define DEG_TO_RAD   ((double)M_PI / 180.0)