Changeset 7997

Show
Ignore:
Timestamp:
03/12/08 11:52:38
Author:
jcorgan
Message:

Fix incorrect FFT size compensation in fftsink2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/trunk/gr-wxgui/src/python/fftsink2.py

    r7871 r7997  
    123123        # FIXME  We need to add 3dB to all bins but the DC bin 
    124124        self.log = gr.nlog10_ff(20, self.fft_size, 
    125                                -20*math.log10(self.fft_size)          # Adjust for number of bins 
     125                               -10*math.log10(self.fft_size)          # Adjust for number of bins 
    126126                               -10*math.log10(power/self.fft_size)      # Adjust for windowing loss 
    127127                               -20*math.log10(ref_scale/2))             # Adjust for reference scale 
     
    166166        # FIXME  We need to add 3dB to all bins but the DC bin 
    167167        self.log = gr.nlog10_ff(20, self.fft_size, 
    168                                 -20*math.log10(self.fft_size)         # Adjust for number of bins 
     168                                -10*math.log10(self.fft_size)         # Adjust for number of bins 
    169169                                -10*math.log10(power/self.fft_size)     # Adjust for windowing loss 
    170170                                -20*math.log10(ref_scale/2))            # Adjust for reference scale