summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-16 20:50:33 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-16 20:50:33 +0200
commit28b152d40742481d8eae0108afd4e6bf7a17eb2a (patch)
tree069bc944b4fcac86302073891bd73b9d74da899a
parentab60de8f913f2cddca5a890cbb0589ee7ae2c0a5 (diff)
downloaddabmod-28b152d40742481d8eae0108afd4e6bf7a17eb2a.tar.gz
dabmod-28b152d40742481d8eae0108afd4e6bf7a17eb2a.tar.bz2
dabmod-28b152d40742481d8eae0108afd4e6bf7a17eb2a.zip
Get generate-filter.py to work again
-rwxr-xr-xdoc/fir-filter/generate-filter.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/fir-filter/generate-filter.py b/doc/fir-filter/generate-filter.py
index 403f080..288bd69 100755
--- a/doc/fir-filter/generate-filter.py
+++ b/doc/fir-filter/generate-filter.py
@@ -53,12 +53,10 @@ from gnuradio import digital
gain = 1
sampling_freq = 2.048e6
cutoff = 810e3
-transition_width = 150e3
-window = digital.filter.window.WIN_HAMMING
-
+transition_width = 250e3
# Generate filter taps and print them out
-taps = digital.filter.firdes_low_pass(gain, sampling_freq, cutoff, transition_width, window, beta=6.76)
+taps = digital.filter.firdes_low_pass(gain, sampling_freq, cutoff, transition_width) # hamming window
print(len(taps))
for t in taps: