summaryrefslogtreecommitdiff
path: root/docs/exploring-gnuradio/fm_demod_example.xml
diff options
context:
space:
mode:
authorTom Rondeau2012-04-13 18:36:53 -0400
committerTom Rondeau2012-04-13 18:36:53 -0400
commitf919f9dcbb54a08e6e26d6c229ce92fb784fa1b2 (patch)
tree7e846386b9eb1676f9a93fc4a1e55916b9accc97 /docs/exploring-gnuradio/fm_demod_example.xml
parent6a1e9783fec6ed827f49db27c171591d30f32933 (diff)
downloadgnuradio-f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2.tar.gz
gnuradio-f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2.tar.bz2
gnuradio-f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2.zip
Removed whitespace and added dtools/bin/remove-whitespace as a tool to do this in the future.
The sed script was provided by Moritz Fischer.
Diffstat (limited to 'docs/exploring-gnuradio/fm_demod_example.xml')
-rw-r--r--docs/exploring-gnuradio/fm_demod_example.xml14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/exploring-gnuradio/fm_demod_example.xml b/docs/exploring-gnuradio/fm_demod_example.xml
index 3036f88ba..b417da0a8 100644
--- a/docs/exploring-gnuradio/fm_demod_example.xml
+++ b/docs/exploring-gnuradio/fm_demod_example.xml
@@ -24,10 +24,10 @@ def build_graph (freq1, freq2):
audio_rate = quad_rate / audio_decimation
fg = gr.flow_graph ()
-
+
# use high speed ADC as input source
src = high_speed_adc (fg, input_rate)
-
+
# compute FIR filter taps for channel selection
channel_coeffs = \
gr.firdes.low_pass (1.0, # gain
@@ -42,9 +42,9 @@ def build_graph (freq1, freq2):
channel_coeffs,
freq1, # 1st station freq
input_rate)
-
+
(head1, tail1) = build_pipeline (fg, quad_rate, audio_decimation)
-
+
# sound card as final sink
audio_sink = audio.sink (int (audio_rate))
@@ -84,7 +84,7 @@ def build_pipeline (fg, quad_rate, audio_decimation):
fg.connect (fm_demod, audio_filter)
return ((fm_demod, 0), (audio_filter, 0))
-
+
def main (args):
nargs = len (args)
@@ -106,13 +106,13 @@ def main (args):
# determine the front end's "Intermediate Frequency"
IF_freq = rf_front_end.get_output_freq () # 5.75e6
- # Tell the front end to tune to freq1.
+ # Tell the front end to tune to freq1.
# I.e., freq1 is translated down to the IF frequency
rf_front_end.set_RF_freq (freq1)
# build the flow graph
fg = build_graph (IF_freq, None)
-
+
fg.start () # fork thread(s) and return
raw_input ('Press Enter to quit: ')
fg.stop ()