From d8ad6e8e04226d9edf0a7d6d06955ed5db68dfab Mon Sep 17 00:00:00 2001
From: Johnathan Corgan
Date: Sat, 10 Mar 2012 11:09:10 -0800
Subject: fcd: moved items to current layout standard
* Public header files moved from lib/ to include/fcd
* Contents of apps/ moved to examples/ to get into gnuradio/examples,
apps for programs to be installed into $PREFIX/bin
---
gr-fcd/examples/.gitignore | 6 +
gr-fcd/examples/Makefile.am | 49 ++
gr-fcd/examples/fcd_apt_rx.grc | 704 +++++++++++++++++++++++++++
gr-fcd/examples/fcd_fft_wx.grc | 320 +++++++++++++
gr-fcd/examples/fcd_nfm_rx.cc | 114 +++++
gr-fcd/examples/fcd_nfm_rx.grc | 1035 ++++++++++++++++++++++++++++++++++++++++
6 files changed, 2228 insertions(+)
create mode 100644 gr-fcd/examples/.gitignore
create mode 100644 gr-fcd/examples/Makefile.am
create mode 100644 gr-fcd/examples/fcd_apt_rx.grc
create mode 100644 gr-fcd/examples/fcd_fft_wx.grc
create mode 100644 gr-fcd/examples/fcd_nfm_rx.cc
create mode 100644 gr-fcd/examples/fcd_nfm_rx.grc
(limited to 'gr-fcd/examples')
diff --git a/gr-fcd/examples/.gitignore b/gr-fcd/examples/.gitignore
new file mode 100644
index 000000000..52ffc3037
--- /dev/null
+++ b/gr-fcd/examples/.gitignore
@@ -0,0 +1,6 @@
+/Makefile
+/Makefile.in
+/.deps/*
+/.libs/*
+/fcd_nfm_rx
+/fcd_nfm_rx.o
diff --git a/gr-fcd/examples/Makefile.am b/gr-fcd/examples/Makefile.am
new file mode 100644
index 000000000..a57d7a808
--- /dev/null
+++ b/gr-fcd/examples/Makefile.am
@@ -0,0 +1,49 @@
+#
+# Copyright 2011,2012 Free Software Foundation, Inc.
+#
+# 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.
+#
+
+include $(top_srcdir)/Makefile.common
+
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/gr-fcd/include/fcd \
+ -I$(top_srcdir)/gr-audio/include \
+ $(STD_DEFINES_AND_INCLUDES) \
+ $(WITH_INCLUDES)
+
+GR_FCD_LA=$(top_builddir)/gr-fcd/lib/libgnuradio-fcd.la
+GNURADIO_AUDIO_LA=$(top_builddir)/gr-audio/lib/libgnuradio-audio.la
+
+ourdatadir = $(exampledir)/fcd
+
+ourdata_PROGRAMS = \
+ fcd_nfm_rx
+
+fcd_nfm_rx_SOURCES = \
+ fcd_nfm_rx.cc
+
+fcd_nfm_rx_LDADD = \
+ $(GR_FCD_LA) \
+ $(GNURADIO_CORE_LA) \
+ $(GNURADIO_AUDIO_LA) \
+ $(BOOST_PROGRAM_OPTIONS_LIB)
+
+dist_ourdata_SCRIPTS = \
+ fcd_fft_wx.grc \
+ fcd_apt_rx.grc \
+ fcd_nfm_rx.grc
+
diff --git a/gr-fcd/examples/fcd_apt_rx.grc b/gr-fcd/examples/fcd_apt_rx.grc
new file mode 100644
index 000000000..c4d3e64d1
--- /dev/null
+++ b/gr-fcd/examples/fcd_apt_rx.grc
@@ -0,0 +1,704 @@
+
+
+ Sun May 8 18:01:53 2011
+
+ options
+
+ id
+ fcd_apt_rx
+
+
+ _enabled
+ True
+
+
+ title
+ NOAA APT Receiver
+
+
+ author
+ Alexandru Csete OZ9AEC
+
+
+ description
+
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ run_options
+ prompt
+
+
+ run
+ True
+
+
+ realtime_scheduling
+
+
+
+ _coordinate
+ (10, 10)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ samp_rate
+
+
+ _enabled
+ True
+
+
+ value
+ 96000
+
+
+ _coordinate
+ (200, 9)
+
+
+ _rotation
+ 0
+
+
+
+ audio_sink
+
+ id
+ audio_sink
+
+
+ _enabled
+ True
+
+
+ samp_rate
+ 48000
+
+
+ device_name
+
+
+
+ ok_to_block
+ True
+
+
+ num_inputs
+ 1
+
+
+ _coordinate
+ (794, 355)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_fm_demod_cf
+
+ id
+ blks2_fm_demod_cf
+
+
+ _enabled
+ True
+
+
+ chan_rate
+ samp_rate
+
+
+ audio_decim
+ 2
+
+
+ deviation
+ max_dev
+
+
+ audio_pass
+ 5000
+
+
+ audio_stop
+ 7000
+
+
+ gain
+ 1.0
+
+
+ tau
+ 75e-6
+
+
+ _coordinate
+ (568, 307)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_rational_resampler_xxx
+
+ id
+ blks2_rational_resampler_xxx_0
+
+
+ _enabled
+ True
+
+
+ type
+ fff
+
+
+ decim
+ 48000
+
+
+ interp
+ 11025
+
+
+ taps
+ []
+
+
+ fractional_bw
+ 0
+
+
+ _coordinate
+ (516, 522)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ wav_file
+
+
+ _enabled
+ True
+
+
+ value
+ prefix + datetime.now().strftime("%Y.%m.%d.%H.%M.%S") + ".wav"
+
+
+ _coordinate
+ (762, 652)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ prefix
+
+
+ _enabled
+ True
+
+
+ value
+ "FCD_APT_REC-"
+
+
+ _coordinate
+ (625, 653)
+
+
+ _rotation
+ 0
+
+
+
+ import
+
+ id
+ import_0
+
+
+ _enabled
+ True
+
+
+ import
+ from datetime import datetime
+
+
+ _coordinate
+ (508, 653)
+
+
+ _rotation
+ 0
+
+
+
+ gr_wavfile_sink
+
+ id
+ wavfile_sink
+
+
+ _enabled
+ True
+
+
+ file
+ wav_file
+
+
+ nchan
+ 1
+
+
+ samp_rate
+ 11025
+
+
+ bits_per_sample
+ 16
+
+
+ _coordinate
+ (805, 530)
+
+
+ _rotation
+ 0
+
+
+
+ variable_chooser
+
+ id
+ sat_freq
+
+
+ _enabled
+ True
+
+
+ label
+ Satellite
+
+
+ value
+ 137500000
+
+
+ choices
+ [137500000,137620000,137912500,137100000]
+
+
+ labels
+ ["NOAA-15","NOAA-17","NOAA-18","NOAA-19"]
+
+
+ type
+ drop_down
+
+
+ style
+ wx.RA_HORIZONTAL
+
+
+ grid_pos
+ 1,0,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (18, 479)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ max_dev
+
+
+ _enabled
+ True
+
+
+ value
+ 17000
+
+
+ _coordinate
+ (299, 10)
+
+
+ _rotation
+ 0
+
+
+
+ variable_chooser
+
+ id
+ fcd_lna_gain
+
+
+ _enabled
+ True
+
+
+ label
+ LNA gain [dB]
+
+
+ value
+ 20.0
+
+
+ choices
+ [30.0, 25.0, 20.0, 17.5, 15.0, 12.5, 10.0, 7.5, 5.0, 2.5, 0.0, -2.5, -5.0]
+
+
+ labels
+ []
+
+
+ type
+ drop_down
+
+
+ style
+ wx.RA_HORIZONTAL
+
+
+ grid_pos
+ 2,0,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (207, 481)
+
+
+ _rotation
+ 0
+
+
+
+ variable_static_text
+
+ id
+ rec_info
+
+
+ _enabled
+ True
+
+
+ label
+ Recording to
+
+
+ value
+ wav_file
+
+
+ converver
+ str_converter
+
+
+ formatter
+ None
+
+
+ grid_pos
+ 1,1,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (641, 14)
+
+
+ _rotation
+ 0
+
+
+
+ low_pass_filter
+
+ id
+ low_pass_filter
+
+
+ _enabled
+ True
+
+
+ type
+ fir_filter_ccf
+
+
+ decim
+ 1
+
+
+ interp
+ 1
+
+
+ gain
+ 1
+
+
+ samp_rate
+ samp_rate
+
+
+ cutoff_freq
+ 25000
+
+
+ width
+ 5000
+
+
+ win
+ firdes.WIN_HAMMING
+
+
+ beta
+ 6.76
+
+
+ _coordinate
+ (334, 307)
+
+
+ _rotation
+ 0
+
+
+
+ fcd_source_c
+
+ id
+ fcd_source_c_0
+
+
+ _enabled
+ True
+
+
+ device_name
+ hw:1
+
+
+ freq
+ sat_freq
+
+
+ lna
+ fcd_lna_gain
+
+
+ ppm
+ -120
+
+
+ dci
+ 0.0
+
+
+ dcq
+ 0.0
+
+
+ iq_phase
+ 0.0
+
+
+ iq_gain
+ 1.0
+
+
+ _coordinate
+ (25, 299)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_fftsink2
+
+ id
+ fftsink
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ title
+ FCD Spectrum
+
+
+ samp_rate
+ samp_rate
+
+
+ baseband_freq
+ sat_freq
+
+
+ y_per_div
+ 10
+
+
+ y_divs
+ 10
+
+
+ ref_level
+ 0.0
+
+
+ ref_scale
+ 1.0
+
+
+ fft_size
+ 512
+
+
+ fft_rate
+ 15
+
+
+ peak_hold
+ False
+
+
+ average
+ False
+
+
+ avg_alpha
+ 0
+
+
+ win
+ None
+
+
+ win_size
+
+
+
+ grid_pos
+ 0,0,1,2
+
+
+ notebook
+
+
+
+ _coordinate
+ (335, 103)
+
+
+ _rotation
+ 0
+
+
+
+ low_pass_filter
+ blks2_fm_demod_cf
+ 0
+ 0
+
+
+ blks2_fm_demod_cf
+ audio_sink
+ 0
+ 0
+
+
+ blks2_rational_resampler_xxx_0
+ wavfile_sink
+ 0
+ 0
+
+
+ blks2_fm_demod_cf
+ blks2_rational_resampler_xxx_0
+ 0
+ 0
+
+
+ fcd_source_c_0
+ low_pass_filter
+ 0
+ 0
+
+
+ fcd_source_c_0
+ fftsink
+ 0
+ 0
+
+
diff --git a/gr-fcd/examples/fcd_fft_wx.grc b/gr-fcd/examples/fcd_fft_wx.grc
new file mode 100644
index 000000000..c045bbfa2
--- /dev/null
+++ b/gr-fcd/examples/fcd_fft_wx.grc
@@ -0,0 +1,320 @@
+
+
+ Sun May 8 18:02:35 2011
+
+ options
+
+ id
+ fcd_fft_wx
+
+
+ _enabled
+ True
+
+
+ title
+ Funcube Dongle FFT scope
+
+
+ author
+ Alexandru Csete OZ9AEC
+
+
+ description
+
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ run_options
+ prompt
+
+
+ run
+ True
+
+
+ realtime_scheduling
+
+
+
+ _coordinate
+ (10, 10)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ samp_rate
+
+
+ _enabled
+ True
+
+
+ value
+ 96000
+
+
+ _coordinate
+ (201, 11)
+
+
+ _rotation
+ 0
+
+
+
+ variable_text_box
+
+ id
+ fcd_freq
+
+
+ _enabled
+ True
+
+
+ label
+ FCD freq
+
+
+ value
+ 145500000
+
+
+ converver
+ float_converter
+
+
+ formatter
+ None
+
+
+ grid_pos
+ 1,0,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (300, 11)
+
+
+ _rotation
+ 0
+
+
+
+ variable_chooser
+
+ id
+ fcd_lna_gain
+
+
+ _enabled
+ True
+
+
+ label
+ LNA gain [dB]
+
+
+ value
+ 20.0
+
+
+ choices
+ [30.0, 25.0, 20.0, 17.5, 15.0, 12.5, 10.0, 7.5, 5.0, 2.5, 0.0, -2.5, -5.0]
+
+
+ labels
+ []
+
+
+ type
+ drop_down
+
+
+ style
+ wx.RA_HORIZONTAL
+
+
+ grid_pos
+ 2,0,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (446, 10)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_fftsink2
+
+ id
+ wxgui_fftsink2_0
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ title
+ FCD Spectrum
+
+
+ samp_rate
+ samp_rate
+
+
+ baseband_freq
+ fcd_freq
+
+
+ y_per_div
+ 10
+
+
+ y_divs
+ 10
+
+
+ ref_level
+ 0
+
+
+ ref_scale
+ 1.0
+
+
+ fft_size
+ 512
+
+
+ fft_rate
+ 15
+
+
+ peak_hold
+ False
+
+
+ average
+ False
+
+
+ avg_alpha
+ 0
+
+
+ win
+ None
+
+
+ win_size
+
+
+
+ grid_pos
+ 0,0,1,2
+
+
+ notebook
+
+
+
+ _coordinate
+ (442, 176)
+
+
+ _rotation
+ 0
+
+
+
+ fcd_source_c
+
+ id
+ fcd_source_c_1
+
+
+ _enabled
+ True
+
+
+ device_name
+ hw:1
+
+
+ freq
+ fcd_freq
+
+
+ lna
+ fcd_lna_gain
+
+
+ ppm
+ -120
+
+
+ dci
+ 0.0
+
+
+ dcq
+ 0.0
+
+
+ iq_phase
+ 0.0
+
+
+ iq_gain
+ 1.0
+
+
+ _coordinate
+ (95, 192)
+
+
+ _rotation
+ 0
+
+
+
+ fcd_source_c_1
+ wxgui_fftsink2_0
+ 0
+ 0
+
+
diff --git a/gr-fcd/examples/fcd_nfm_rx.cc b/gr-fcd/examples/fcd_nfm_rx.cc
new file mode 100644
index 000000000..97ef7cf19
--- /dev/null
+++ b/gr-fcd/examples/fcd_nfm_rx.cc
@@ -0,0 +1,114 @@
+/*
+ * Copyright 2011 Free Software Foundation, Inc.
+ *
+ * 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.
+ */
+
+/*
+ * Simple GNU Radio C++ example for using the Funcube Dongle.
+ *
+ * Construct a simple narrow band FM receiver using the gr-fcd
+ * block as source.
+ *
+ * This example uses "hw:1" as FCD source device and the default
+ * audio device for output.
+ *
+ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+// Include header files for each block used in flowgraph
+#include
+#include
+#include
+#include
+#include
+#include
+
+// other includes
+#include
+#include
+
+
+namespace po = boost::program_options;
+
+int main(int argc, char **argv)
+{
+ int rate = 48000; // Audio card sample rate
+ float pi = 3.141592654;
+
+
+ //variables to be set by po
+ std::string device;
+ int freq;
+ float gain;
+
+ //setup the program options
+ po::options_description desc("Command line options");
+ desc.add_options()
+ ("help", "This help message")
+ ("device", po::value(&device)->default_value("hw:1"), "Audio input device")
+ ("freq", po::value(&freq)->default_value(145500), "RF frequency in kHz")
+ ("gain", po::value(&gain)->default_value(20.0), "LNA gain in dB")
+ ;
+ po::variables_map vm;
+ po::store(po::parse_command_line(argc, argv, desc), vm);
+ po::notify(vm);
+
+ //print the help message
+ if (vm.count("help")){
+ std::cout << "Narrow band FM receiver example" << std::endl << desc << std::endl;
+ return ~0;
+ }
+
+
+ // Construct a top block that will contain flowgraph blocks.
+ gr_top_block_sptr tb = gr_make_top_block("fcd_nfm_rx");
+
+ // FCD source
+ fcd_source_c_sptr fcd = fcd_make_source_c(device);
+ fcd->set_freq_khz(freq);
+ fcd->set_lna_gain(gain);
+
+ // Low pass filter
+ std::vector taps = gr_firdes::low_pass(1.0, 96000, 5000.0, 1000.0);
+ gr_fir_filter_ccf_sptr filter = gr_make_fir_filter_ccf (2, taps);
+
+ // FM demodulator
+ // gain = sample_rate / (2*pi*max_dev)
+ gr_quadrature_demod_cf_sptr demod = gr_make_quadrature_demod_cf (rate/(2.0*pi*5000.0));
+
+ // Audio sink
+ audio_sink::sptr sink = audio_make_sink(rate);
+
+ // Connect blocks
+ tb->connect(fcd, 0, filter, 0);
+ tb->connect(filter, 0, demod, 0);
+ tb->connect(demod, 0, sink, 0);
+
+ // Tell GNU Radio runtime to start flowgraph threads; the foreground thread
+ // will block until either flowgraph exits (this example doesn't) or the
+ // application receives SIGINT (e.g., user hits CTRL-C).
+ //
+ // Real applications may use tb->start() which returns, allowing the foreground
+ // thread to proceed, then later use tb->stop(), followed by tb->wait(), to cleanup
+ // GNU Radio before exiting.
+ tb->run();
+
+ // Exit normally.
+ return 0;
+}
diff --git a/gr-fcd/examples/fcd_nfm_rx.grc b/gr-fcd/examples/fcd_nfm_rx.grc
new file mode 100644
index 000000000..9dac3fcb8
--- /dev/null
+++ b/gr-fcd/examples/fcd_nfm_rx.grc
@@ -0,0 +1,1035 @@
+
+
+ Sun May 8 18:05:32 2011
+
+ options
+
+ id
+ fcd_nfm_rx
+
+
+ _enabled
+ True
+
+
+ title
+ FCD FM Receiver
+
+
+ author
+ OZ9AEC
+
+
+ description
+ Simple FM receiver using the Funcube Dongle
+
+
+ window_size
+ 1280, 1024
+
+
+ generate_options
+ wx_gui
+
+
+ category
+ Custom
+
+
+ run_options
+ prompt
+
+
+ run
+ True
+
+
+ realtime_scheduling
+
+
+
+ _coordinate
+ (10, 10)
+
+
+ _rotation
+ 0
+
+
+
+ variable_static_text
+
+ id
+ rx_freq
+
+
+ _enabled
+ True
+
+
+ label
+ Receive
+
+
+ value
+ freq+(offset_coarse+offset_fine)
+
+
+ converver
+ float_converter
+
+
+ formatter
+ None
+
+
+ grid_pos
+ 5,3,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (491, 10)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ offset_fine
+
+
+ _enabled
+ True
+
+
+ label
+ Fine tune
+
+
+ value
+ 0
+
+
+ min
+ -1000
+
+
+ max
+ 1000
+
+
+ num_steps
+ 400
+
+
+ style
+ wx.SL_HORIZONTAL
+
+
+ converver
+ float_converter
+
+
+ grid_pos
+ 6,0,1,2
+
+
+ notebook
+
+
+
+ _coordinate
+ (9, 279)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ offset_coarse
+
+
+ _enabled
+ True
+
+
+ label
+ Coarse tune
+
+
+ value
+ 0
+
+
+ min
+ -48000
+
+
+ max
+ 48000
+
+
+ num_steps
+ 960
+
+
+ style
+ wx.SL_HORIZONTAL
+
+
+ converver
+ float_converter
+
+
+ grid_pos
+ 6,2,1,2
+
+
+ notebook
+
+
+
+ _coordinate
+ (10, 130)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ width
+
+
+ _enabled
+ True
+
+
+ label
+ Filter
+
+
+ value
+ 10000
+
+
+ min
+ 2000
+
+
+ max
+ 40000
+
+
+ num_steps
+ 760
+
+
+ style
+ wx.SL_HORIZONTAL
+
+
+ converver
+ float_converter
+
+
+ grid_pos
+ 7,0,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (9, 431)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ trans
+
+
+ _enabled
+ True
+
+
+ label
+ Trans
+
+
+ value
+ 1500
+
+
+ min
+ 500
+
+
+ max
+ 5000
+
+
+ num_steps
+ 900
+
+
+ style
+ wx.SL_HORIZONTAL
+
+
+ converver
+ float_converter
+
+
+ grid_pos
+ 8,0,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (10, 577)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ af_gain
+
+
+ _enabled
+ True
+
+
+ label
+ VOL
+
+
+ value
+ 1
+
+
+ min
+ 0
+
+
+ max
+ 5
+
+
+ num_steps
+ 50
+
+
+ style
+ wx.SL_HORIZONTAL
+
+
+ converver
+ float_converter
+
+
+ grid_pos
+ 8,1,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (168, 726)
+
+
+ _rotation
+ 0
+
+
+
+ low_pass_filter
+
+ id
+ low_pass_filter
+
+
+ _enabled
+ True
+
+
+ type
+ fir_filter_ccf
+
+
+ decim
+ 1
+
+
+ interp
+ 1
+
+
+ gain
+ 1
+
+
+ samp_rate
+ samp_rate
+
+
+ cutoff_freq
+ width/2
+
+
+ width
+ trans
+
+
+ win
+ firdes.WIN_HAMMING
+
+
+ beta
+ 6.76
+
+
+ _coordinate
+ (742, 258)
+
+
+ _rotation
+ 0
+
+
+
+ gr_simple_squelch_cc
+
+ id
+ gr_simple_squelch_cc_0
+
+
+ _enabled
+ True
+
+
+ threshold
+ sql_lev
+
+
+ alpha
+ 1
+
+
+ _coordinate
+ (226, 499)
+
+
+ _rotation
+ 0
+
+
+
+ blks2_nbfm_rx
+
+ id
+ nbfm_normal
+
+
+ _enabled
+ True
+
+
+ audio_rate
+ 48000
+
+
+ quad_rate
+ 96000
+
+
+ tau
+ 75e-6
+
+
+ max_dev
+ 5e3
+
+
+ _coordinate
+ (441, 483)
+
+
+ _rotation
+ 0
+
+
+
+ gr_multiply_const_vxx
+
+ id
+ gr_multiply_const_vxx_1
+
+
+ _enabled
+ True
+
+
+ type
+ float
+
+
+ const
+ af_gain
+
+
+ vlen
+ 1
+
+
+ _coordinate
+ (674, 507)
+
+
+ _rotation
+ 0
+
+
+
+ audio_sink
+
+ id
+ audio_sink
+
+
+ _enabled
+ True
+
+
+ samp_rate
+ 48000
+
+
+ device_name
+
+
+
+ ok_to_block
+ True
+
+
+ num_inputs
+ 2
+
+
+ _coordinate
+ (882, 511)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ samp_rate
+
+
+ _enabled
+ True
+
+
+ value
+ 96000
+
+
+ _coordinate
+ (210, 12)
+
+
+ _rotation
+ 0
+
+
+
+ wxgui_fftsink2
+
+ id
+ fftsink
+
+
+ _enabled
+ True
+
+
+ type
+ complex
+
+
+ title
+
+
+
+ samp_rate
+ samp_rate
+
+
+ baseband_freq
+ rx_freq*display_selector
+
+
+ y_per_div
+ 10
+
+
+ y_divs
+ 10
+
+
+ ref_level
+ 0
+
+
+ ref_scale
+ 1.0
+
+
+ fft_size
+ 512
+
+
+ fft_rate
+ 15
+
+
+ peak_hold
+ False
+
+
+ average
+ True
+
+
+ avg_alpha
+ 0.5
+
+
+ win
+ None
+
+
+ win_size
+ 800,300
+
+
+ grid_pos
+ 0,0,5,4
+
+
+ notebook
+
+
+
+ _coordinate
+ (742, 24)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ sql_lev
+
+
+ _enabled
+ True
+
+
+ label
+ SQL
+
+
+ value
+ -100
+
+
+ min
+ -100
+
+
+ max
+ 0
+
+
+ num_steps
+ 500
+
+
+ style
+ wx.SL_HORIZONTAL
+
+
+ converver
+ float_converter
+
+
+ grid_pos
+ 7,2,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (328, 728)
+
+
+ _rotation
+ 0
+
+
+
+ variable
+
+ id
+ xlate_filter_taps
+
+
+ _enabled
+ True
+
+
+ value
+ firdes.low_pass(1, samp_rate, 48000, 5000, firdes.WIN_HAMMING, 6.76)
+
+
+ _coordinate
+ (428, 294)
+
+
+ _rotation
+ 0
+
+
+
+ variable_chooser
+
+ id
+ display_selector
+
+
+ _enabled
+ True
+
+
+ label
+ Spectrum
+
+
+ value
+ 0
+
+
+ choices
+ [0, 1]
+
+
+ labels
+ ['Baseband','RF']
+
+
+ type
+ drop_down
+
+
+ style
+ wx.RA_HORIZONTAL
+
+
+ grid_pos
+ 5,0,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (481, 728)
+
+
+ _rotation
+ 0
+
+
+
+ variable_text_box
+
+ id
+ freq
+
+
+ _enabled
+ True
+
+
+ label
+ FCD Freq
+
+
+ value
+ 144470000
+
+
+ converver
+ float_converter
+
+
+ formatter
+ None
+
+
+ grid_pos
+ 5,1,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (339, 9)
+
+
+ _rotation
+ 0
+
+
+
+ gr_freq_xlating_fir_filter_xxx
+
+ id
+ xlating_fir_filter
+
+
+ _enabled
+ True
+
+
+ type
+ ccc
+
+
+ decim
+ 1
+
+
+ taps
+ xlate_filter_taps
+
+
+ center_freq
+ -(offset_coarse+offset_fine)
+
+
+ samp_rate
+ samp_rate
+
+
+ _coordinate
+ (433, 189)
+
+
+ _rotation
+ 0
+
+
+
+ variable_slider
+
+ id
+ rf_gain
+
+
+ _enabled
+ True
+
+
+ label
+ RF
+
+
+ value
+ 20
+
+
+ min
+ -5
+
+
+ max
+ 30
+
+
+ num_steps
+ 35
+
+
+ style
+ wx.SL_HORIZONTAL
+
+
+ converver
+ float_converter
+
+
+ grid_pos
+ 7,1,1,1
+
+
+ notebook
+
+
+
+ _coordinate
+ (11, 725)
+
+
+ _rotation
+ 0
+
+
+
+ fcd_source_c
+
+ id
+ fcd_source_c_1
+
+
+ _enabled
+ True
+
+
+ device_name
+ hw:1
+
+
+ freq
+ freq
+
+
+ lna
+ rf_gain
+
+
+ ppm
+ -120
+
+
+ dci
+ 0.0
+
+
+ dcq
+ 0.0
+
+
+ iq_phase
+ 0.0
+
+
+ iq_gain
+ 1.0
+
+
+ _coordinate
+ (165, 157)
+
+
+ _rotation
+ 0
+
+
+
+ xlating_fir_filter
+ fftsink
+ 0
+ 0
+
+
+ xlating_fir_filter
+ low_pass_filter
+ 0
+ 0
+
+
+ low_pass_filter
+ gr_simple_squelch_cc_0
+ 0
+ 0
+
+
+ gr_multiply_const_vxx_1
+ audio_sink
+ 0
+ 1
+
+
+ gr_multiply_const_vxx_1
+ audio_sink
+ 0
+ 0
+
+
+ gr_simple_squelch_cc_0
+ nbfm_normal
+ 0
+ 0
+
+
+ nbfm_normal
+ gr_multiply_const_vxx_1
+ 0
+ 0
+
+
+ fcd_source_c_1
+ xlating_fir_filter
+ 0
+ 0
+
+
--
cgit
From 704afafe874735a8b260870efb1ed11c2c85eff4 Mon Sep 17 00:00:00 2001
From: Johnathan Corgan
Date: Mon, 12 Mar 2012 10:11:01 -0700
Subject: fcd: complete cmake build
---
gr-fcd/examples/CMakeLists.txt | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
create mode 100644 gr-fcd/examples/CMakeLists.txt
(limited to 'gr-fcd/examples')
diff --git a/gr-fcd/examples/CMakeLists.txt b/gr-fcd/examples/CMakeLists.txt
new file mode 100644
index 000000000..9913a30f3
--- /dev/null
+++ b/gr-fcd/examples/CMakeLists.txt
@@ -0,0 +1,41 @@
+# Copyright 2012 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.
+
+include_directories(${GR_FCD_INCLUDE_DIRS})
+include_directories(${GNURADIO_CORE_INCLUDE_DIRS})
+include_directories(${GR_AUDIO_INCLUDE_DIRS})
+
+add_executable(fcd_nfm_rx fcd_nfm_rx.cc)
+target_link_libraries(fcd_nfm_rx gnuradio-fcd)
+
+INSTALL(PROGRAMS
+ ${CMAKE_CURRENT_BINARY_DIR}/fcd_nfm_rx
+ DESTINATION ${GR_PKG_DATA_DIR}/examples/fcd
+ COMPONENT "fcd_examples"
+)
+
+if(ENABLE_PYTHON)
+ INSTALL(FILES
+ fcd_apt_rx.grc
+ fcd_fft_wx.grc
+ fcd_nfm_rx.grc
+ DESTINATION ${GR_PKG_DATA_DIR}/examples/fcd
+ COMPONENT "fcd_examples"
+ )
+endif()
--
cgit
From 81fba6490c6471e1db3bcc85d16ff2242f68fb43 Mon Sep 17 00:00:00 2001
From: Johnathan Corgan
Date: Thu, 22 Mar 2012 13:35:20 -0700
Subject: Implement conditionalized build for WIN32
---
gr-fcd/examples/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'gr-fcd/examples')
diff --git a/gr-fcd/examples/CMakeLists.txt b/gr-fcd/examples/CMakeLists.txt
index 9913a30f3..477a6311b 100644
--- a/gr-fcd/examples/CMakeLists.txt
+++ b/gr-fcd/examples/CMakeLists.txt
@@ -24,8 +24,8 @@ include_directories(${GR_AUDIO_INCLUDE_DIRS})
add_executable(fcd_nfm_rx fcd_nfm_rx.cc)
target_link_libraries(fcd_nfm_rx gnuradio-fcd)
-INSTALL(PROGRAMS
- ${CMAKE_CURRENT_BINARY_DIR}/fcd_nfm_rx
+INSTALL(TARGETS
+ fcd_nfm_rx
DESTINATION ${GR_PKG_DATA_DIR}/examples/fcd
COMPONENT "fcd_examples"
)
--
cgit