aboutsummaryrefslogtreecommitdiff
path: root/tools/plot_lighthouse/fileutil.c
diff options
context:
space:
mode:
authorMichael Turvey <mwturvey@users.noreply.github.com>2017-02-13 16:52:34 -0700
committerGitHub <noreply@github.com>2017-02-13 16:52:34 -0700
commit3f475fad0fc6b6b03bc0bf7a61edc986148f0786 (patch)
tree410ace763f3f513081338d6803c2a755582b3202 /tools/plot_lighthouse/fileutil.c
parentdd949f9495956ab87795f6a75e8257d0a37325fd (diff)
parentee433e4a076f77fa28e4d55d6703d6ed7c599251 (diff)
downloadlibsurvive-3f475fad0fc6b6b03bc0bf7a61edc986148f0786.tar.gz
libsurvive-3f475fad0fc6b6b03bc0bf7a61edc986148f0786.tar.bz2
Merge pull request #8 from cnlohr/master
Updating Master
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; }