From 5ede0e2b1457d7c28ad29c5f2322305621a3b26a Mon Sep 17 00:00:00 2001 From: jcorgan Date: Thu, 28 Feb 2008 19:03:55 +0000 Subject: 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 --- gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py') 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) -- cgit