aboutsummaryrefslogtreecommitdiff
path: root/src/survive_data.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-12-20 23:36:55 -0500
committercnlohr <lohr85@gmail.com>2016-12-20 23:36:55 -0500
commit170219fe413602508b31c39df23c8938adc6c35f (patch)
treea3a955f85472f8888e2837eff821e2dc1f2219e8 /src/survive_data.c
parent093802f9cc7ebaa0bfe8d862766e7e08026576f0 (diff)
downloadlibsurvive-170219fe413602508b31c39df23c8938adc6c35f.tar.gz
libsurvive-170219fe413602508b31c39df23c8938adc6c35f.tar.bz2
get the new disambiguator closer, but it's still not perfect.
Diffstat (limited to 'src/survive_data.c')
-rw-r--r--src/survive_data.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/survive_data.c b/src/survive_data.c
index cb3e8a2..6a1656b 100644
--- a/src/survive_data.c
+++ b/src/survive_data.c
@@ -41,7 +41,7 @@ static void handle_lightcap( struct SurviveObject * so, struct LightcapElement *
if( le->type != 0xfe || le->length < 50 ) return;
//le->timestamp += (le->length/2);
-
+#if 0
int32_t offset = le->timestamp - so->d->last;
switch( disambiguator_step( so->d, le->timestamp, le->length ) ) {
default:
@@ -56,7 +56,8 @@ static void handle_lightcap( struct SurviveObject * so, struct LightcapElement *
ct->lightproc( so, le->sensor_id, so->d->code >> 1, offset, le->timestamp, le->length );
break;
}
-#if 0
+#endif
+#ifdef USE_OLD_DISAMBIGUATOR
if( le->length > 2100 ) //Pulse longer indicates a sync pulse.
{
int32_t deltat = (uint32_t)le->timestamp - (uint32_t)so->last_photo_time;