Revision f2fa77f6
| b/gr-utils/src/python/usrp_fft.py | ||
|---|---|---|
| 75 | 75 |
help="Enable oscilloscope display") |
| 76 | 76 |
parser.add_option("", "--avg-alpha", type="eng_float", default=1e-1,
|
| 77 | 77 |
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]") |
|
| 78 | 80 |
(options, args) = parser.parse_args() |
| 79 | 81 |
if len(args) != 0: |
| 80 | 82 |
parser.print_help() |
| ... | ... | |
| 118 | 120 |
self.scope = scopesink2.scope_sink_c(panel, sample_rate=input_rate) |
| 119 | 121 |
else: |
| 120 | 122 |
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,
|
|
| 122 | 124 |
avg_alpha=options.avg_alpha) |
| 123 | 125 |
|
| 124 | 126 |
self.connect(self.u, self.scope) |
Also available in: Unified diff