aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.c
diff options
context:
space:
mode:
authormwturvey <michael.w.turvey@intel.com>2017-03-24 13:44:38 -0700
committermwturvey <michael.w.turvey@intel.com>2017-03-24 13:44:38 -0700
commita576703242adea11c012af5afdff38af84d22e2e (patch)
treed9188ec475ea7c350cdb454b75b45f67d4f1a8ab /src/survive_cal.c
parent9f6c7e87266c5a7d721d4d8e3ace82dc46207387 (diff)
downloadlibsurvive-a576703242adea11c012af5afdff38af84d22e2e.tar.gz
libsurvive-a576703242adea11c012af5afdff38af84d22e2e.tar.bz2
Adaptive Acode Offset Compensation
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-xsrc/survive_cal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c
index 81889ca..22a8eff 100755
--- a/src/survive_cal.c
+++ b/src/survive_cal.c
@@ -200,6 +200,7 @@ void survive_cal_light( struct SurviveObject * so, int sensor_id, int acode, int
//Collecting OOTX data.
if( sensor_id < 0 )
{
+ //fprintf(stderr, "%s\n", so->codename);
int lhid = -sensor_id-1;
// Take the OOTX data from the first device. (if using HMD, WM0, WM1 only, this will be HMD)
if( lhid < NUM_LIGHTHOUSES && so == cd->poseobjects[0] )
@@ -210,9 +211,7 @@ void survive_cal_light( struct SurviveObject * so, int sensor_id, int acode, int
int i;
for( i = 0; i < NUM_LIGHTHOUSES; i++ )
if( ctx->bsd[i].OOTXSet == 0 ) break;
- if( i == NUM_LIGHTHOUSES ) cd->stage = 2; //If all lighthouses have their OOTX set, move on. <------- Revert This!!!!!
- //if( i == 1 )
- //cd->stage = 2; //If all lighthouses have their OOTX set, move on.
+ if( i == NUM_LIGHTHOUSES ) cd->stage = 2; //TODO: Make this configuratble to allow single lighthouse.
}
break;
case 3: //Look for light sync lengths.