From: jcorgan Date: Thu, 28 Feb 2008 19:35:18 +0000 (+0000) Subject: Make averaging alpha configurable X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a2d1e3699e0ce052b9005c708bc8d0c5c4c0ba03;p=debian%2Fgnuradio Make averaging alpha configurable git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7864 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gr-utils/src/python/usrp_fft.py b/gr-utils/src/python/usrp_fft.py index 30a06911..9a9f75fe 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)