aboutsummaryrefslogtreecommitdiff
path: root/tools/plot_lighthouse/fileutil.c
diff options
context:
space:
mode:
authorJosh Allen <axlecrusher@gmail.com>2017-02-13 15:57:41 -0500
committerJosh Allen <axlecrusher@gmail.com>2017-02-13 15:57:41 -0500
commit6c99f7abf29463df723221dcaa8c3fe7c93c3371 (patch)
tree562b87e108460eea416cedc183b1ce333bee386e /tools/plot_lighthouse/fileutil.c
parentfa88e40fa07c3cf425b45fe56cf6dda613545e36 (diff)
parentee433e4a076f77fa28e4d55d6703d6ed7c599251 (diff)
downloadlibsurvive-6c99f7abf29463df723221dcaa8c3fe7c93c3371.tar.gz
libsurvive-6c99f7abf29463df723221dcaa8c3fe7c93c3371.tar.bz2
Merge github.com:cnlohr/libsurvive
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; }