From 2ee4b4ad4d0da76821ba854ca879885f9df5b4ae Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 11 Nov 2012 12:46:54 +0100 Subject: [PATCH] float_to_bits: Remove offset This is a symptom of frequency offset and it's the demodulator job to correct this ... Thanks to Frank A. Stevenson for noticing this legacy hack Signed-off-by: Sylvain Munaut --- src/float_to_bits.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/float_to_bits.c b/src/float_to_bits.c index 08fad54..3fed32b 100644 --- a/src/float_to_bits.c +++ b/src/float_to_bits.c @@ -30,10 +30,9 @@ #include #include -static int process_sym_fl(float offset, float fl) +static int process_sym_fl(float fl) { int ret; - fl += offset; /* very simplistic scheme */ if (fl > 2) @@ -113,7 +112,7 @@ int main(int argc, char **argv) exit(1); } else if (rc == 0) break; - rc = process_sym_fl(0.3f, fl); + rc = process_sym_fl(fl); sym_int2bits(rc, bits); //printf("%2d %1u %1u %f\n", rc, bits[0], bits[1], fl); if (opt_verbose)