aboutsummaryrefslogtreecommitdiff
path: root/tools/plot_lighthouse/fileutil.h
diff options
context:
space:
mode:
authorultramn <dchapm2@umbc.edu>2017-02-04 20:03:12 -0800
committerultramn <dchapm2@umbc.edu>2017-02-04 20:03:12 -0800
commit2afbb0313dafe3f52a38ee2061cb1de8043d16e6 (patch)
tree305a3ed5762b3e17e9290b387e08a5157af982f3 /tools/plot_lighthouse/fileutil.h
parent4c44cd91e2190ca55e4bffca6491b4171b3bbdca (diff)
downloadlibsurvive-2afbb0313dafe3f52a38ee2061cb1de8043d16e6.tar.gz
libsurvive-2afbb0313dafe3f52a38ee2061cb1de8043d16e6.tar.bz2
Moved plot_lighthouse to the tools folder
Diffstat (limited to 'tools/plot_lighthouse/fileutil.h')
-rw-r--r--tools/plot_lighthouse/fileutil.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/plot_lighthouse/fileutil.h b/tools/plot_lighthouse/fileutil.h
new file mode 100644
index 0000000..714fbbd
--- /dev/null
+++ b/tools/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_
+
+