diff options
author | ultramn <dchapm2@umbc.edu> | 2017-02-04 20:00:07 -0800 |
---|---|---|
committer | ultramn <dchapm2@umbc.edu> | 2017-02-04 20:00:07 -0800 |
commit | bf89e4cfa7191c3ea9bb3eeee7005db250001d55 (patch) | |
tree | 61c7ec93321b12ff4b21f05ad53977f0ea157ef2 /dave/plot_lighthouse/fileutil.h | |
parent | a09f7c5b7df9298e9fd6679192994a33e5867f72 (diff) | |
download | libsurvive-bf89e4cfa7191c3ea9bb3eeee7005db250001d55.tar.gz libsurvive-bf89e4cfa7191c3ea9bb3eeee7005db250001d55.tar.bz2 |
Added plot_lighthouse in dave folder
Diffstat (limited to 'dave/plot_lighthouse/fileutil.h')
-rw-r--r-- | dave/plot_lighthouse/fileutil.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dave/plot_lighthouse/fileutil.h b/dave/plot_lighthouse/fileutil.h new file mode 100644 index 0000000..714fbbd --- /dev/null +++ b/dave/plot_lighthouse/fileutil.h @@ -0,0 +1,34 @@ +#ifndef _fileutil_h_ +#define _fileutil_h_ + +#include <pthread.h> +#include "../../redist/os_generic.h" + +void LoadLighthousePos( + const char *path, + float *x, float *y, float *z, + float *qi, float *qj, float *qk, float *qreal); + + +#define NUM_HMD 32 +#define NUM_SWEEP 4 +#define SWEEP_LX 0 +#define SWEEP_LY 1 +#define SWEEP_RX 2 +#define SWEEP_RY 3 +void LoadHmdProcessedDataAngles( + const char *path, + double angle[NUM_SWEEP][NUM_HMD]); + + +extern og_mutex_t read_mutex; +extern og_thread_t read_thread; +extern double read_hmdAngles[NUM_SWEEP][NUM_HMD]; +extern int read_hmdAngleViewed[NUM_SWEEP][NUM_HMD]; +extern int read_frameno; +void *ThreadReadHmtAngles(void *junk); + + +#endif // __fileutil_h_ + + |