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>
◆ 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) |