From d4ccaa85963c08e7095f49a0378dc21fdf701209 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Sat, 17 Dec 2016 16:58:57 -0500 Subject: Fix light disambiguator location, put with the object instead of the system. --- data_recorder.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'data_recorder.c') diff --git a/data_recorder.c b/data_recorder.c index 24c8bc1..913f8e0 100644 --- a/data_recorder.c +++ b/data_recorder.c @@ -44,7 +44,7 @@ void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int if( acode == 0 || acode == 2 ) //data = 0 { printf( "L X %s %d %d %d %d %d\n", so->codename, timecode, sensor_id, acode, timeinsweep, length ); - if( strcmp( so->codename, "HED" ) == 0 ) + if( strcmp( so->codename, "HMD" ) == 0 ) { bufferpts[sensor_id*2+0] = (timeinsweep-100000)/500; buffertimeto[sensor_id] = 0; @@ -53,7 +53,7 @@ void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int if( acode == 1 || acode == 3 ) //data = 1 { printf( "L Y %s %d %d %d %d %d\n", so->codename, timecode, sensor_id, acode, timeinsweep, length ); - if( strcmp( so->codename, "HED" ) == 0 ) + if( strcmp( so->codename, "HMD" ) == 0 ) { bufferpts[sensor_id*2+1] = (timeinsweep-100000)/500; buffertimeto[sensor_id] = 0; @@ -64,7 +64,7 @@ void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int if( acode == 4 || acode == 6 ) //data = 0 { printf( "R X %s %d %d %d %d %d\n", so->codename, timecode, sensor_id, acode, timeinsweep, length ); - if( strcmp( so->codename, "HED" ) == 0 ) + if( strcmp( so->codename, "HMD" ) == 0 ) { bufferpts[sensor_id*2+0] = (timeinsweep-100000)/500; buffertimeto[sensor_id] = 0; @@ -73,7 +73,7 @@ void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int if( acode == 5 || acode == 7 ) //data = 1 { printf( "R Y %s %d %d %d %d %d\n", so->codename, timecode, sensor_id, acode, timeinsweep, length ); - if( strcmp( so->codename, "HED" ) == 0 ) + if( strcmp( so->codename, "HMD" ) == 0 ) { bufferpts[sensor_id*2+1] = (timeinsweep-100000)/500; buffertimeto[sensor_id] = 0; -- cgit v1.2.3