summaryrefslogtreecommitdiff
path: root/gr-utils
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils')
-rwxr-xr-xgr-utils/src/python/usrp_fft.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-utils/src/python/usrp_fft.py b/gr-utils/src/python/usrp_fft.py
index 30a06911a..9a9f75fe6 100755
--- a/gr-utils/src/python/usrp_fft.py
+++ b/gr-utils/src/python/usrp_fft.py
@@ -73,6 +73,8 @@ class app_top_block(stdgui2.std_top_block):
help="don't use halfband filter in usrp")
parser.add_option("-S", "--oscilloscope", action="store_true", default=False,
help="Enable oscilloscope display")
+ parser.add_option("", "--avg-alpha", type="eng_float", default=1e-1,
+ help="Set fftsink averaging factor, default=[%default]")
(options, args) = parser.parse_args()
if len(args) != 0:
parser.print_help()
@@ -116,7 +118,8 @@ class app_top_block(stdgui2.std_top_block):
self.scope = scopesink2.scope_sink_c(panel, sample_rate=input_rate)
else:
self.scope = fftsink2.fft_sink_c (panel, fft_size=1024, sample_rate=input_rate,
- ref_scale=32768.0, ref_level=0.0, y_divs = 10)
+ ref_scale=32768.0, ref_level=0.0, y_divs = 10,
+ avg_alpha=options.avg_alpha)
self.connect(self.u, self.scope)