From: jcorgan Date: Wed, 12 Mar 2008 17:52:38 +0000 (+0000) Subject: Fix incorrect FFT size compensation in fftsink2 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=0388ecb65c788413c9d80e7d6a5622ecc280bd71;p=debian%2Fgnuradio Fix incorrect FFT size compensation in fftsink2 git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7997 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gr-wxgui/src/python/fftsink2.py b/gr-wxgui/src/python/fftsink2.py index fbddd71c..3bfb8afb 100755 --- a/gr-wxgui/src/python/fftsink2.py +++ b/gr-wxgui/src/python/fftsink2.py @@ -122,7 +122,7 @@ class fft_sink_f(gr.hier_block2, fft_sink_base): # FIXME We need to add 3dB to all bins but the DC bin self.log = gr.nlog10_ff(20, self.fft_size, - -20*math.log10(self.fft_size) # Adjust for number of bins + -10*math.log10(self.fft_size) # Adjust for number of bins -10*math.log10(power/self.fft_size) # Adjust for windowing loss -20*math.log10(ref_scale/2)) # Adjust for reference scale @@ -165,7 +165,7 @@ class fft_sink_c(gr.hier_block2, fft_sink_base): # FIXME We need to add 3dB to all bins but the DC bin self.log = gr.nlog10_ff(20, self.fft_size, - -20*math.log10(self.fft_size) # Adjust for number of bins + -10*math.log10(self.fft_size) # Adjust for number of bins -10*math.log10(power/self.fft_size) # Adjust for windowing loss -20*math.log10(ref_scale/2)) # Adjust for reference scale