summaryrefslogtreecommitdiff
path: root/gr-utils/src
diff options
context:
space:
mode:
authorjcorgan2008-02-28 19:35:18 +0000
committerjcorgan2008-02-28 19:35:18 +0000
commita2d1e3699e0ce052b9005c708bc8d0c5c4c0ba03 (patch)
tree3a3aa5e5b0d859ced46c742a46e554bcbc93b93a /gr-utils/src
parent5ede0e2b1457d7c28ad29c5f2322305621a3b26a (diff)
downloadgnuradio-a2d1e3699e0ce052b9005c708bc8d0c5c4c0ba03.tar.gz
gnuradio-a2d1e3699e0ce052b9005c708bc8d0c5c4c0ba03.tar.bz2
gnuradio-a2d1e3699e0ce052b9005c708bc8d0c5c4c0ba03.zip
Make averaging alpha configurable
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7864 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-utils/src')
-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)