diff options
author | Josh Allen <axlecrusher@gmail.com> | 2017-02-13 16:00:19 -0500 |
---|---|---|
committer | Josh Allen <axlecrusher@gmail.com> | 2017-02-13 16:00:19 -0500 |
commit | 7fdfd9fff265d38ae002d8007a02f746f42fd3f2 (patch) | |
tree | 5fc7e797c66e6d3af40f8c2830c267b399be3765 /tools/plot_lighthouse/fileutil.c | |
parent | 56a6bbc24962251d223536285aa407c7652c7c46 (diff) | |
parent | 6c99f7abf29463df723221dcaa8c3fe7c93c3371 (diff) | |
download | libsurvive-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.c | 5 |
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; } |