summaryrefslogtreecommitdiff
path: root/gr-analog/python/analog
diff options
context:
space:
mode:
authorAndy Walls <awalls@md.metrocast.net>2016-03-30 07:43:58 -0400
committerAndy Walls <awalls@md.metrocast.net>2016-03-30 07:43:58 -0400
commit2ae7809b845b7930c9b0120737167dd1251098eb (patch)
treed028c40bd64a8e5ec1a455a213ca624513d89f46 /gr-analog/python/analog
parent137ae3420b370de42cac2fcb7b1e212968f3a638 (diff)
gr-analog: FM emphasis filters use "newstyle" taps
In redesign of the FM emphasis filters, I fell into the gr-filter implementation trap of the default "oldstyle=True" taps. This caused the pole of the IIR filter to be reflected about the z = j w axis, resulting in an incorrect filter. Set the filters to use newstyle taps.
Diffstat (limited to 'gr-analog/python/analog')
-rw-r--r--gr-analog/python/analog/fm_emph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-analog/python/analog/fm_emph.py b/gr-analog/python/analog/fm_emph.py
index e457f56dc0..7637743d91 100644
--- a/gr-analog/python/analog/fm_emph.py
+++ b/gr-analog/python/analog/fm_emph.py
@@ -137,7 +137,7 @@ class fm_deemph(gr.hier_block2):
global plot1
plot1 = gru.gnuplot_freqz(gru.freqz(btaps, ataps), fs, True)
- deemph = filter.iir_filter_ffd(btaps, ataps)
+ deemph = filter.iir_filter_ffd(btaps, ataps, False)
self.connect(self, deemph, self)
#
@@ -321,5 +321,5 @@ class fm_preemph(gr.hier_block2):
global plot2
plot2 = gru.gnuplot_freqz(gru.freqz(btaps, ataps), fs, True)
- preemph = filter.iir_filter_ffd(btaps, ataps)
+ preemph = filter.iir_filter_ffd(btaps, ataps, False)
self.connect(self, preemph, self)