summaryrefslogtreecommitdiff
path: root/gr-analog/lib
diff options
context:
space:
mode:
authorTom Rondeau2013-02-12 19:09:36 -0500
committerTom Rondeau2013-02-12 19:09:36 -0500
commit5e98721cb56d10d38ea65aa405399e2f9c4e6056 (patch)
tree8544eef0286dea201d9e34b8a6f0e7e95dcefba4 /gr-analog/lib
parent37f297f892b9f1248915e119119a6ba3237f571f (diff)
parent600c04a799627b882e8760f131a189bbad616540 (diff)
downloadgnuradio-5e98721cb56d10d38ea65aa405399e2f9c4e6056.tar.gz
gnuradio-5e98721cb56d10d38ea65aa405399e2f9c4e6056.tar.bz2
gnuradio-5e98721cb56d10d38ea65aa405399e2f9c4e6056.zip
Merge branch 'maint'
Diffstat (limited to 'gr-analog/lib')
-rw-r--r--gr-analog/lib/ctcss_squelch_ff_impl.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-analog/lib/ctcss_squelch_ff_impl.cc b/gr-analog/lib/ctcss_squelch_ff_impl.cc
index db49b4f6e..60cd94fdb 100644
--- a/gr-analog/lib/ctcss_squelch_ff_impl.cc
+++ b/gr-analog/lib/ctcss_squelch_ff_impl.cc
@@ -115,11 +115,12 @@ namespace gr {
d_goertzel_c.input(in);
d_goertzel_r.input(in);
+ float rounder = 100000;
float d_out_l, d_out_c, d_out_r;
if(d_goertzel_c.ready()) {
- d_out_l = abs(d_goertzel_l.output());
- d_out_c = abs(d_goertzel_c.output());
- d_out_r = abs(d_goertzel_r.output());
+ d_out_l = floor(rounder*abs(d_goertzel_l.output()))/rounder;
+ d_out_c = floor(rounder*abs(d_goertzel_c.output()))/rounder;
+ d_out_r = floor(rounder*abs(d_goertzel_r.output()))/rounder;
//printf("d_out_l=%f d_out_c=%f d_out_r=%f\n", d_out_l, d_out_c, d_out_r);
d_mute = (d_out_c < d_level || d_out_c < d_out_l || d_out_c < d_out_r);