From 0a77df0393de27416d772b5ca7c2807ba4600bed Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 3 Apr 2013 09:11:26 +0200 Subject: modtool: fixes case when modulname ends in 0 --- gr-utils/src/python/modtool/util_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gr-utils/src/python/modtool/util_functions.py b/gr-utils/src/python/modtool/util_functions.py index 4ca294ac3..c40dbd73b 100644 --- a/gr-utils/src/python/modtool/util_functions.py +++ b/gr-utils/src/python/modtool/util_functions.py @@ -92,7 +92,7 @@ def get_modname(): pass # OK, there's no gnuradio.project. So, we need to guess. cmfile = open('CMakeLists.txt', 'r').read() - regexp = r'(project\s*\(\s*|GR_REGISTER_COMPONENT\(")gr-(?P[a-zA-Z1-9-_]+)(\s*(CXX)?|" ENABLE)' + regexp = r'(project\s*\(\s*|GR_REGISTER_COMPONENT\(")gr-(?P[a-zA-Z0-9-_]+)(\s*(CXX)?|" ENABLE)' try: modname = re.search(regexp, cmfile, flags=re.MULTILINE).group('modname').strip() if modname in modname_trans.keys(): -- cgit From 30642aae31a5df712557284dda7a11c151e3f113 Mon Sep 17 00:00:00 2001 From: Ben Reynwar Date: Wed, 3 Apr 2013 10:03:29 -0400 Subject: docs: Add support for swigdocs for QT keywords (signal, slot, property). --- docs/doxygen/doxyxml/doxyindex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/doxygen/doxyxml/doxyindex.py b/docs/doxygen/doxyxml/doxyindex.py index 304109a8e..8c5502a61 100644 --- a/docs/doxygen/doxyxml/doxyindex.py +++ b/docs/doxygen/doxyxml/doxyindex.py @@ -278,7 +278,8 @@ class DoxyOther(Base): __module__ = "gnuradio.utils.doxyxml" - kinds = set(['variable', 'struct', 'union', 'define', 'typedef', 'enum', 'dir', 'page']) + kinds = set(['variable', 'struct', 'union', 'define', 'typedef', 'enum', + 'dir', 'page', 'signal', 'slot', 'property']) @classmethod def can_parse(cls, obj): -- cgit From cac997eee4c0989c5a01133d4ed3e70b07723732 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Wed, 3 Apr 2013 19:25:22 -0400 Subject: digital: making virtual destructor for constellation class. --- gr-digital/include/digital_constellation.h | 2 ++ gr-digital/lib/digital_constellation.cc | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/gr-digital/include/digital_constellation.h b/gr-digital/include/digital_constellation.h index 76cd30b25..9d34d951f 100644 --- a/gr-digital/include/digital_constellation.h +++ b/gr-digital/include/digital_constellation.h @@ -63,6 +63,8 @@ public: unsigned int dimensionality); digital_constellation (); + virtual ~digital_constellation(); + //! Returns the constellation points for a symbol value void map_to_points(unsigned int value, gr_complex *points); std::vector map_to_points_v(unsigned int value); diff --git a/gr-digital/lib/digital_constellation.cc b/gr-digital/lib/digital_constellation.cc index da79f2caa..8b34d9e6b 100644 --- a/gr-digital/lib/digital_constellation.cc +++ b/gr-digital/lib/digital_constellation.cc @@ -77,6 +77,10 @@ digital_constellation::digital_constellation () : calc_arity(); } +digital_constellation::~digital_constellation() +{ +} + //! Returns the constellation points for a symbol value void digital_constellation::map_to_points(unsigned int value, gr_complex *points) -- cgit From 19ca8542d138398c2ef3c81ed0ecf5af628a0f44 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Fri, 5 Apr 2013 10:02:16 -0400 Subject: filter: added exception when using interpolating filter with no taps provided. --- gr-filter/lib/interp_fir_filter_XXX_impl.cc.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t b/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t index c9127d737..fea3b1c8e 100644 --- a/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t +++ b/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t @@ -54,6 +54,10 @@ namespace gr { throw std::out_of_range("@IMPL_NAME@: interpolation must be > 0\n"); } + if(taps.size() == 0) { + throw std::runtime_error("@IMPL_NAME@: no filter taps provided.\n"); + } + std::vector<@TAP_TYPE@> dummy_taps; for(unsigned i = 0; i < interpolation; i++) { -- cgit From 6ed6dfae1925123941032c757346d16c0f84540e Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Fri, 5 Apr 2013 11:30:22 -0400 Subject: filter: fixed pfb_arb_resampler to handle default taps (None) case. --- gr-filter/grc/pfb_arb_resampler.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gr-filter/grc/pfb_arb_resampler.xml b/gr-filter/grc/pfb_arb_resampler.xml index f3048000a..774cb9186 100644 --- a/gr-filter/grc/pfb_arb_resampler.xml +++ b/gr-filter/grc/pfb_arb_resampler.xml @@ -9,10 +9,14 @@ pfb_arb_resampler_xxx from gnuradio import filter from gnuradio.filter import firdes - filter.pfb_arb_resampler_$(type)( + filter.pfb.arb_resampler_$(type)( $rrate, - $taps, - $nfilts) +#if $taps() + taps=$taps, +#else + taps=None, +#end if + flt_size=$nfilts) set_taps($taps) -- cgit From b1f34f61dd4cb2d0aecf4f1763a59fd4a4fa0579 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Sun, 7 Apr 2013 09:59:46 -0400 Subject: digital: fixes for SNR ests. set_history: you keep using that word. I do not think it means what you think it means. --- gr-digital/lib/digital_impl_mpsk_snr_est.cc | 6 +++--- gr-digital/lib/digital_mpsk_snr_est_cc.cc | 2 +- gr-digital/python/qa_mpsk_snr_est.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gr-digital/lib/digital_impl_mpsk_snr_est.cc b/gr-digital/lib/digital_impl_mpsk_snr_est.cc index 38177083f..b2ad0369f 100644 --- a/gr-digital/lib/digital_impl_mpsk_snr_est.cc +++ b/gr-digital/lib/digital_impl_mpsk_snr_est.cc @@ -236,9 +236,9 @@ digital_impl_mpsk_snr_est_svr::update( int noutput_items, const gr_complex *in) { - for (int i = 0; i < noutput_items; i++){ - double x = abs(in[i]); - double x1 = abs(in[i-1]); + for(int i = 0; i < noutput_items; i++) { + double x = abs(in[i+1]); + double x1 = abs(in[i]); double y1 = (x*x)*(x1*x1); d_y1 = d_alpha*y1 + d_beta*d_y1; diff --git a/gr-digital/lib/digital_mpsk_snr_est_cc.cc b/gr-digital/lib/digital_mpsk_snr_est_cc.cc index b5a60f0d3..38a452ac2 100644 --- a/gr-digital/lib/digital_mpsk_snr_est_cc.cc +++ b/gr-digital/lib/digital_mpsk_snr_est_cc.cc @@ -82,7 +82,7 @@ digital_mpsk_snr_est_cc::work(int noutput_items, // Update, calculate, and issue an SNR tag every d_nsamples int index = 0, x = 0; int64_t nwritten = nitems_written(0); - while(index + (d_nsamples-d_count) <= noutput_items) { + while(index + (d_nsamples-d_count) < noutput_items) { x = d_nsamples - d_count; nwritten += x; diff --git a/gr-digital/python/qa_mpsk_snr_est.py b/gr-digital/python/qa_mpsk_snr_est.py index d392567bf..e21bad831 100755 --- a/gr-digital/python/qa_mpsk_snr_est.py +++ b/gr-digital/python/qa_mpsk_snr_est.py @@ -88,7 +88,7 @@ class test_mpsk_snr_est (gr_unittest.TestCase): self.assertFloatTuplesAlmostEqual (expected_result, actual_result, 2) def test_mpsk_snr_est_svn (self): - expected_result = [10.90, 6.00, 4.76, 4.97, 5.49] + expected_result = [10.92, 6.02, 4.78, 4.98, 5.51] N = 10000 alpha = 0.001 -- cgit From f1fb6bc5fb0f031e7e4b7f7290290ca6075faf07 Mon Sep 17 00:00:00 2001 From: Johnathan Corgan Date: Sun, 7 Apr 2013 11:12:51 -0700 Subject: video-sdl: fix typo in .pc file --- gr-video-sdl/gnuradio-video-sdl.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gr-video-sdl/gnuradio-video-sdl.pc.in b/gr-video-sdl/gnuradio-video-sdl.pc.in index 8586a2884..ade9ba910 100644 --- a/gr-video-sdl/gnuradio-video-sdl.pc.in +++ b/gr-video-sdl/gnuradio-video-sdl.pc.in @@ -3,7 +3,7 @@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ -Name: gnuradio-comedi +Name: gnuradio-video-sdl Description: GNU Radio blocks for the SDL library Requires: gnuradio-core sdl Version: @LIBVER@ -- cgit