summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: