diff options
author | jcorgan | 2008-02-28 19:40:12 +0000 |
---|---|---|
committer | jcorgan | 2008-02-28 19:40:12 +0000 |
commit | f2fa77f61b3d569e475cda12ca683fe419e7bfdd (patch) | |
tree | 3f20e605ffcd0bcd0c8dd4ff380041e947c01785 /gr-utils | |
parent | a2d1e3699e0ce052b9005c708bc8d0c5c4c0ba03 (diff) | |
download | gnuradio-f2fa77f61b3d569e475cda12ca683fe419e7bfdd.tar.gz gnuradio-f2fa77f61b3d569e475cda12ca683fe419e7bfdd.tar.bz2 gnuradio-f2fa77f61b3d569e475cda12ca683fe419e7bfdd.zip |
Make usrp_fft.py reference scale configurable.
Default is 14390, which is the ADC full scale * CORDIC gain
in the FPGA DDC.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7865 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-utils')
-rwxr-xr-x | gr-utils/src/python/usrp_fft.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-utils/src/python/usrp_fft.py b/gr-utils/src/python/usrp_fft.py index 9a9f75fe6..307ad1630 100755 --- a/gr-utils/src/python/usrp_fft.py +++ b/gr-utils/src/python/usrp_fft.py @@ -75,6 +75,8 @@ class app_top_block(stdgui2.std_top_block): help="Enable oscilloscope display") parser.add_option("", "--avg-alpha", type="eng_float", default=1e-1, help="Set fftsink averaging factor, default=[%default]") + parser.add_option("", "--ref-scale", type="eng_float", default=13490.0, + help="Set dBFS=0dB input value, default=[%default]") (options, args) = parser.parse_args() if len(args) != 0: parser.print_help() @@ -118,7 +120,7 @@ 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=options.ref_scale, ref_level=0.0, y_divs = 10, avg_alpha=options.avg_alpha) self.connect(self.u, self.scope) |