From 28b152d40742481d8eae0108afd4e6bf7a17eb2a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 16 Apr 2014 20:50:33 +0200 Subject: Get generate-filter.py to work again --- doc/fir-filter/generate-filter.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'doc') 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: -- cgit v1.2.3