summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py
diff options
context:
space:
mode:
authorjcorgan2008-02-28 19:03:55 +0000
committerjcorgan2008-02-28 19:03:55 +0000
commit5ede0e2b1457d7c28ad29c5f2322305621a3b26a (patch)
tree37301199a3a33780186b147ea304caa63eca6173 /gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py
parent2869e85809d37ab4a2c01a18c4b348f7f28ee9b0 (diff)
downloadgnuradio-5ede0e2b1457d7c28ad29c5f2322305621a3b26a.tar.gz
gnuradio-5ede0e2b1457d7c28ad29c5f2322305621a3b26a.tar.bz2
gnuradio-5ede0e2b1457d7c28ad29c5f2322305621a3b26a.zip
Added reference scaling to fftsink2. Default behavior is unchanged.
The new parameter 'ref_scale', defaulting to 1.0, represents a 0 dB y-axis value. Updated usrp_fft.py to display dBFS by setting ref_scale to 32768.0 and ref_level to 0. This results in the full 100 dB of dynamic range being displayed. Updated some gnuradio-examples to use the new parameter. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7863 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py')
-rwxr-xr-xgnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py b/gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py
index a85bcdbf4..bc79fb810 100755
--- a/gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py
+++ b/gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py
@@ -167,7 +167,8 @@ class wfm_rx_block (stdgui2.std_top_block):
if 1:
self.src_fft = fftsink2.fft_sink_c(self.panel, title="Data from USRP",
- fft_size=512, sample_rate=usrp_rate)
+ fft_size=512, sample_rate=usrp_rate,
+ ref_scale=32768.0, ref_level=0, y_divs=12)
self.connect (self.u, self.src_fft)
vbox.Add (self.src_fft.win, 4, wx.EXPAND)