diff options
author | jcorgan | 2008-03-12 17:52:38 +0000 |
---|---|---|
committer | jcorgan | 2008-03-12 17:52:38 +0000 |
commit | 0388ecb65c788413c9d80e7d6a5622ecc280bd71 (patch) | |
tree | fac71b828344ce74e4cd9e36900c86d89c3682bc /gr-wxgui/src/python/fftsink2.py | |
parent | 35a36b10d173b90f2475a9b35ba4d26ece8ca651 (diff) | |
download | gnuradio-0388ecb65c788413c9d80e7d6a5622ecc280bd71.tar.gz gnuradio-0388ecb65c788413c9d80e7d6a5622ecc280bd71.tar.bz2 gnuradio-0388ecb65c788413c9d80e7d6a5622ecc280bd71.zip |
Fix incorrect FFT size compensation in fftsink2
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7997 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-wxgui/src/python/fftsink2.py')
-rwxr-xr-x | gr-wxgui/src/python/fftsink2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-wxgui/src/python/fftsink2.py b/gr-wxgui/src/python/fftsink2.py index fbddd71cf..3bfb8afbd 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 |