Changeset 7865

Show
Ignore:
Timestamp:
02/28/08 12:40:12
Author:
jcorgan
Message:

Make usrp_fft.py reference scale configurable.

Default is 14390, which is the ADC full scale * CORDIC gain
in the FPGA DDC.

Files:

Legend:

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

    r7864 r7865  
    7676        parser.add_option("", "--avg-alpha", type="eng_float", default=1e-1, 
    7777                          help="Set fftsink averaging factor, default=[%default]") 
     78        parser.add_option("", "--ref-scale", type="eng_float", default=13490.0, 
     79                          help="Set dBFS=0dB input value, default=[%default]") 
    7880        (options, args) = parser.parse_args() 
    7981        if len(args) != 0: 
     
    119121        else: 
    120122            self.scope = fftsink2.fft_sink_c (panel, fft_size=1024, sample_rate=input_rate,  
    121                                               ref_scale=32768.0, ref_level=0.0, y_divs = 10, 
     123                                              ref_scale=options.ref_scale, ref_level=0.0, y_divs = 10, 
    122124                                              avg_alpha=options.avg_alpha) 
    123125