Something went wrong on our end
-
Colton Glick authoredColton Glick authored
vrpn.h 805 B
#ifndef VRPN_H_
#define VRPN_H_
#include <string>
#include "vrpn_Connection.h"
#include "vrpn_Tracker.h"
#include "crazyflieGroundStation.h"
#include <stdio.h>
#include <sys/select.h>
#include <termios.h> /* POSIX terminal control definitions */
#include <sys/time.h> // for get time of day
#include "quadcopterData.h"
void vrpn_init(std::string connectionName, void (*callbackHand)(void*, const vrpn_TRACKERCB));
void* vrpn_go(void *threadID);
void nonblock(int state);
void readKeyboard();
void nearGround();
void updateHand();
int kbhit();
//NEW EDIT 6/26/2015
typedef struct //Defines Data packet Struct
{
double usec;
float x;
float y;
float z;
float yaw;
float pitch;
float roll;
} vrpn_data_t;
typedef struct
{
double vrpnNow;
double vrpnPrev;
double vrpnTime0;
} QUAD;
#endif