aboutsummaryrefslogtreecommitdiff
path: root/tools/plot_lighthouse
diff options
context:
space:
mode:
authorultramn <dchapm2@umbc.edu>2017-02-12 15:02:40 -0800
committerultramn <dchapm2@umbc.edu>2017-02-12 15:02:40 -0800
commitee1ec597c5dcb851be8b72e1458bb70fc6cb96a9 (patch)
tree5612ae8d8ae566335803f48c752f724ddd5be81e /tools/plot_lighthouse
parent488c5e9bdf21909564e50ef59aff544917a9758c (diff)
downloadlibsurvive-ee1ec597c5dcb851be8b72e1458bb70fc6cb96a9.tar.gz
libsurvive-ee1ec597c5dcb851be8b72e1458bb70fc6cb96a9.tar.bz2
I don't think this changed, but commit anyway
Diffstat (limited to 'tools/plot_lighthouse')
-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; }