diff options
author | ultramn <dchapm2@umbc.edu> | 2017-02-12 15:02:40 -0800 |
---|---|---|
committer | ultramn <dchapm2@umbc.edu> | 2017-02-12 15:02:40 -0800 |
commit | ee1ec597c5dcb851be8b72e1458bb70fc6cb96a9 (patch) | |
tree | 5612ae8d8ae566335803f48c752f724ddd5be81e | |
parent | 488c5e9bdf21909564e50ef59aff544917a9758c (diff) | |
download | libsurvive-ee1ec597c5dcb851be8b72e1458bb70fc6cb96a9.tar.gz libsurvive-ee1ec597c5dcb851be8b72e1458bb70fc6cb96a9.tar.bz2 |
I don't think this changed, but commit anyway
-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; } |