From ee1ec597c5dcb851be8b72e1458bb70fc6cb96a9 Mon Sep 17 00:00:00 2001 From: ultramn Date: Sun, 12 Feb 2017 15:02:40 -0800 Subject: I don't think this changed, but commit anyway --- tools/plot_lighthouse/fileutil.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/plot_lighthouse') 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; } -- cgit v1.2.3