diff options
author | cnlohr <lohr85@gmail.com> | 2016-12-20 23:36:55 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2016-12-20 23:36:55 -0500 |
commit | 170219fe413602508b31c39df23c8938adc6c35f (patch) | |
tree | a3a955f85472f8888e2837eff821e2dc1f2219e8 /src/disambiguator.c | |
parent | 093802f9cc7ebaa0bfe8d862766e7e08026576f0 (diff) | |
download | libsurvive-170219fe413602508b31c39df23c8938adc6c35f.tar.gz libsurvive-170219fe413602508b31c39df23c8938adc6c35f.tar.bz2 |
get the new disambiguator closer, but it's still not perfect.
Diffstat (limited to 'src/disambiguator.c')
-rw-r--r-- | src/disambiguator.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/disambiguator.c b/src/disambiguator.c index 8a5a993..f641834 100644 --- a/src/disambiguator.c +++ b/src/disambiguator.c @@ -56,10 +56,13 @@ pulse_type disambiguator_step( struct disambiguator * d, long time, int length) if (length < 2750) { return d->state == D_STATE_LOCKED ? P_SWEEP : P_UNKNOWN; } + //printf( "%d %d\n", time, length ); + //printf( "." ); + //time -= length/2; disambiguator_discard(d, time - 10000000); int idx = disambiguator_find_nearest(d, time - 400000, 100); - + if (time - d->last > 401000) { d->state = D_STATE_UNLOCKED; } |