summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClayton Smith <argilo@gmail.com>2019-10-01 08:45:31 -0400
committerMarcus Müller <mmueller@gnuradio.org>2019-10-19 23:20:33 +0200
commitec9eacc862817c7d5973e51f950800dfff814684 (patch)
tree430f8263141441c60185772f8f23c1cba1285093
parent55c55fe3e17d556484ed9139e8e941a0da00f9c4 (diff)
Replace tabs with spaces
-rwxr-xr-xgr-uhd/apps/uhd_rx_nogui36
1 files changed, 18 insertions, 18 deletions
diff --git a/gr-uhd/apps/uhd_rx_nogui b/gr-uhd/apps/uhd_rx_nogui
index 946a82182c..82f72c4b25 100755
--- a/gr-uhd/apps/uhd_rx_nogui
+++ b/gr-uhd/apps/uhd_rx_nogui
@@ -32,7 +32,7 @@ RFSQL - RF squelch zeroing output when input power below threshold
AGC - Automatic gain control leveling signal at [-1.0, +1.0]
DEMOD - Demodulation block appropriate to selected signal type.
This converts the complex baseband to real audio frequencies,
- and applies an appropriate low pass decimating filter.
+ and applies an appropriate low pass decimating filter.
CTCSS - Optional tone squelch zeroing output when tone is not present.
RSAMP - Resampler block to convert audio sample rate to user specified
sound card output rate.
@@ -40,8 +40,8 @@ AUDIO - Audio sink for playing final output to speakers.
The following are required command line parameters:
--f FREQ USRP receive frequency
--m MOD Modulation type, select from AM, FM, or WFM
+-f FREQ USRP receive frequency
+-m MOD Modulation type, select from AM, FM, or WFM
The following are optional command line parameters:
@@ -51,8 +51,8 @@ The following are optional command line parameters:
-g GAIN Daughterboard gain setting. Defaults to mid-range.
-o RATE Sound card output rate. Defaults to 32000. Useful if
your sound card only accepts particular sample rates.
--r RFSQL RF squelch in db. Defaults to -50.0.
--p FREQ CTCSS frequency. Opens squelch when tone is present.
+-r RFSQL RF squelch in db. Defaults to -50.0.
+-p FREQ CTCSS frequency. Opens squelch when tone is present.
Once the program is running, ctrl-break (Ctrl-C) stops operation.
@@ -72,10 +72,10 @@ from gnuradio.eng_option import eng_option
# (device_rate, channel_rate, audio_rate, channel_pass, channel_stop, demod)
DEMOD_PARAMS = {
- 'AM' : (256e3, 16e3, 16e3, 5000, 8000, analog.demod_10k0a3e_cf),
- 'FM' : (256e3, 32e3, 8e3, 8000, 9000, analog.demod_20k0f3e_cf),
- 'WFM' : (320e3, 320e3, 32e3, 80000, 115000, analog.demod_200kf3e_cf)
- }
+ 'AM' : (256e3, 16e3, 16e3, 5000, 8000, analog.demod_10k0a3e_cf),
+ 'FM' : (256e3, 32e3, 8e3, 8000, 9000, analog.demod_20k0f3e_cf),
+ 'WFM' : (320e3, 320e3, 32e3, 80000, 115000, analog.demod_200kf3e_cf)
+ }
class uhd_src(gr.hier_block2):
"""
@@ -140,8 +140,8 @@ class app_top_block(gr.top_block):
dev = uhd_src(options.args, # UHD device address
options.spec, # device subdev spec
options.antenna, # device antenna
- dev_rate, # device sample rate
- options.gain, # Receiver gain
+ dev_rate, # device sample rate
+ options.gain, # Receiver gain
options.calibration) # Frequency offset
dev.tune(options.frequency)
@@ -150,27 +150,27 @@ class app_top_block(gr.top_block):
audio_decim = int(channel_rate // audio_rate)
chan_taps = filter.optfir.low_pass(1.0, # Filter gain
- if_rate, # Sample rate
+ if_rate, # Sample rate
channel_pass, # One sided modulation bandwidth
channel_stop, # One sided channel bandwidth
- 0.1, # Passband ripple
- 60) # Stopband attenuation
+ 0.1, # Passband ripple
+ 60) # Stopband attenuation
chan = filter.freq_xlating_fir_filter_ccf(
channel_decim, # Decimation rate
chan_taps, # Filter taps
- 0.0, # Offset frequency
+ 0.0, # Offset frequency
if_rate) # Sample rate
rfsql = analog.pwr_squelch_cc(
options.rf_squelch, # Power threshold
125.0/channel_rate, # Time constant
int(channel_rate/20), # 50ms rise/fall
- False) # Zero, not gate output
+ False) # Zero, not gate output
agc = analog.agc_cc(1.0/channel_rate, # Time constant
- 1.0, # Reference power
- 1.0) # Gain
+ 1.0, # Reference power
+ 1.0) # Gain
demod = demod(channel_rate, audio_decim)