summaryrefslogtreecommitdiff
path: root/docs/exploring-gnuradio
diff options
context:
space:
mode:
Diffstat (limited to 'docs/exploring-gnuradio')
-rw-r--r--docs/exploring-gnuradio/.gitignore1
-rw-r--r--docs/exploring-gnuradio/Makefile10
-rwxr-xr-xdocs/exploring-gnuradio/dial_tone.py10
-rw-r--r--docs/exploring-gnuradio/exploring-gnuradio.xml4
-rwxr-xr-xdocs/exploring-gnuradio/fm_demod.py16
-rw-r--r--docs/exploring-gnuradio/fm_demod_example.xml14
6 files changed, 27 insertions, 28 deletions
diff --git a/docs/exploring-gnuradio/.gitignore b/docs/exploring-gnuradio/.gitignore
deleted file mode 100644
index b6e6030ca..000000000
--- a/docs/exploring-gnuradio/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/exploring-gnuradio.html
diff --git a/docs/exploring-gnuradio/Makefile b/docs/exploring-gnuradio/Makefile
index b36ce1f6d..cd5da8523 100644
--- a/docs/exploring-gnuradio/Makefile
+++ b/docs/exploring-gnuradio/Makefile
@@ -1,23 +1,23 @@
#
# Copyright 2004 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
TARGETS = exploring-gnuradio.html
diff --git a/docs/exploring-gnuradio/dial_tone.py b/docs/exploring-gnuradio/dial_tone.py
index 9cc05baa3..cabfa0864 100755
--- a/docs/exploring-gnuradio/dial_tone.py
+++ b/docs/exploring-gnuradio/dial_tone.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/docs/exploring-gnuradio/exploring-gnuradio.xml b/docs/exploring-gnuradio/exploring-gnuradio.xml
index 9d471f663..286ca8609 100644
--- a/docs/exploring-gnuradio/exploring-gnuradio.xml
+++ b/docs/exploring-gnuradio/exploring-gnuradio.xml
@@ -148,7 +148,7 @@ end may be eliminated altogether. One GNU Radio experimenter has
listened to AM and shortwave broadcasts by connecting a 100-foot piece
of wire directly to his 20M sample/sec ADC.</para>
-</sect1>
+</sect1>
<sect1 id="software"><title>On to the Software</title>
@@ -186,7 +186,7 @@ floats. One sine wave is at 350 Hz, and the other is at
<para>audio.sink is a sink that writes its input to the sound card. It
takes one or more streams of floats in the range -1 to +1 as its
-input. We connect the three blocks together using the
+input. We connect the three blocks together using the
<methodname>connect</methodname> method of the flow graph.</para>
<para><methodname>connect</methodname> takes two parameters, the
diff --git a/docs/exploring-gnuradio/fm_demod.py b/docs/exploring-gnuradio/fm_demod.py
index e58407f73..0071fd751 100755
--- a/docs/exploring-gnuradio/fm_demod.py
+++ b/docs/exploring-gnuradio/fm_demod.py
@@ -21,10 +21,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
@@ -39,9 +39,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))
@@ -67,7 +67,7 @@ def build_graph (freq1, freq2):
fg.connect (src, chan_filter2)
fg.connect (chan_filter2, head2)
fg.connect (tail2, (audio_sink, 1))
-
+
return fg
def build_pipeline (fg, quad_rate, audio_decimation):
@@ -99,7 +99,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)
@@ -136,10 +136,10 @@ def main (args):
target_freq = (freq1 + freq2) / 2
actual_freq = rf_front_end.set_RF_freq (target_freq)
#actual_freq = target_freq
-
+
fg = build_graph (IF_freq + freq1 - actual_freq,
IF_freq + freq2 - actual_freq)
-
+
fg.start () # fork thread(s) and return
raw_input ('Press Enter to quit: ')
fg.stop ()
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 ()