aboutsummaryrefslogtreecommitdiff
path: root/tools/plot_lighthouse/fileutil.c
diff options
context:
space:
mode:
authorJosh Allen <axlecrusher@gmail.com>2017-02-13 16:00:19 -0500
committerJosh Allen <axlecrusher@gmail.com>2017-02-13 16:00:19 -0500
commit7fdfd9fff265d38ae002d8007a02f746f42fd3f2 (patch)
tree5fc7e797c66e6d3af40f8c2830c267b399be3765 /tools/plot_lighthouse/fileutil.c
parent56a6bbc24962251d223536285aa407c7652c7c46 (diff)
parent6c99f7abf29463df723221dcaa8c3fe7c93c3371 (diff)
downloadlibsurvive-7fdfd9fff265d38ae002d8007a02f746f42fd3f2.tar.gz
libsurvive-7fdfd9fff265d38ae002d8007a02f746f42fd3f2.tar.bz2
Merge branch 'master' of github.com:axlecrusher/libsurvive into ootx_decoder_context_cleanup
Diffstat (limited to 'tools/plot_lighthouse/fileutil.c')
-rw-r--r--tools/plot_lighthouse/fileutil.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/plot_lighthouse/fileutil.c b/tools/plot_lighthouse/fileutil.c
index f892798..b2c8f64 100644
--- a/tools/plot_lighthouse/fileutil.c
+++ b/tools/plot_lighthouse/fileutil.c
@@ -110,7 +110,10 @@ void *ThreadReadHmtAngles(void *junk)
if ( xy[0] =='Y' ) { sweepId++; }
double angle = (PI / 400000.0) * ( (double)timeInSweep-200000.0 );
- if ( strcmp(hmd,"HMD")!=0 ) { continue; }
+ if ( strcmp(hmd,"HMD")==0 ) { id += 0; }
+ else if ( strcmp(hmd,"WM0")==0 ) { id += 32; }
+ else if ( strcmp(hmd,"WM1")==0 ) { id += 56; }
+ else { continue; }
if ( id<0 || id >NUM_HMD) { continue; }