4 #include <libusb-1.0/libusb.h> 7 #define YOST_ID_VENDOR 0x2476 8 #define YOST_ID_PRODUCTA 0x1010 9 #define YOST_ID_PRODUCTB 0x1040 10 #define YOST_NUMBER_OF_INTERFACES 3 11 #define YOST_READ_WRITE_T 3000 12 #define YOST_MAX_BUFF_LEN 75 49 int ReadEuler(
float &ex,
float &why,
float &zee);
56 int ReadQuat(
float &dubya,
float &ex,
float &why,
float &zee);
63 int ReadVectors(
float &downx,
float &downy,
float &downz,
64 float &forx,
float &fory,
float &forz);
67 int ReadDecoupleAngles(
float &yaw,
float &pitch,
float &roll);
74 int ReadAccel(
float &ex,
float &why,
float &zee);
81 int ReadConfidence(
float &cee);
88 int ReadTemp(
int &tee);
92 struct libusb_device_handle *USB_lock;
93 struct libusb_context *tmpcntxt;
97 int setAttributes(
int fileDesc);
98 int writeNRead(uint8_t *from,
const char *to);
99 int checkIfYost(
const char *dev);
102 int gyroSpeed(
int speed);
103 int setYostToDefault();
106 void normalize(
double *nx,
double *ny,
double *nz);