commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/05: analog: disable deemph for tau=0.0 i


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/05: analog: disable deemph for tau=0.0 in fm_demod
Date: Fri, 7 Mar 2014 17:52:50 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 17b2ecf0307bd8365d19508673f9f8cbcaa733d2
Author: Sebastian Koslowski <address@hidden>
Date:   Sat Jan 4 01:53:57 2014 +0100

    analog: disable deemph for tau=0.0 in fm_demod
---
 gr-analog/python/analog/fm_demod.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-analog/python/analog/fm_demod.py 
b/gr-analog/python/analog/fm_demod.py
index cf99b76..4e3c01d 100644
--- a/gr-analog/python/analog/fm_demod.py
+++ b/gr-analog/python/analog/fm_demod.py
@@ -46,7 +46,7 @@ class fm_demod_cf(gr.hier_block2):
         audio_pass: audio low pass filter passband frequency (float)
         audio_stop: audio low pass filter stop frequency (float)
         gain: gain applied to audio output (default = 1.0) (float)
-        tau: deemphasis time constant (default = 75e-6), specify 'None' to 
prevent deemphasis
+        tau: deemphasis time constant (default = 75e-6), specify tau=0.0 to 
prevent deemphasis (float)
     """
     def __init__(self, channel_rate, audio_decim, deviation,
                  audio_pass, audio_stop, gain=1.0, tau=75e-6):
@@ -67,7 +67,7 @@ class fm_demod_cf(gr.hier_block2):
         )
         LPF = filter.fir_filter_fff(audio_decim, audio_taps)
 
-        if tau is not None:
+        if tau is not None and tau > 0.0:  # None should be deprecated someday
             DEEMPH = fm_deemph(channel_rate, tau)
             self.connect(self, QUAD, DEEMPH, LPF, self)
         else:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]