[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r7997 - gnuradio/trunk/gr-wxgui/src/python
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r7997 - gnuradio/trunk/gr-wxgui/src/python |
Date: |
Wed, 12 Mar 2008 11:52:38 -0600 (MDT) |
Author: jcorgan
Date: 2008-03-12 11:52:38 -0600 (Wed, 12 Mar 2008)
New Revision: 7997
Modified:
gnuradio/trunk/gr-wxgui/src/python/fftsink2.py
Log:
Fix incorrect FFT size compensation in fftsink2
Modified: gnuradio/trunk/gr-wxgui/src/python/fftsink2.py
===================================================================
--- gnuradio/trunk/gr-wxgui/src/python/fftsink2.py 2008-03-12 17:38:31 UTC
(rev 7996)
+++ gnuradio/trunk/gr-wxgui/src/python/fftsink2.py 2008-03-12 17:52:38 UTC
(rev 7997)
@@ -122,7 +122,7 @@
# 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 @@
# 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r7997 - gnuradio/trunk/gr-wxgui/src/python,
jcorgan <=