commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10619 - in gnuradio/branches/releases/3.2: . gnuradio


From: jcorgan
Subject: [Commit-gnuradio] r10619 - in gnuradio/branches/releases/3.2: . gnuradio-core/src/lib/general gnuradio-core/src/lib/gengen gnuradio-core/src/python/gnuradio/gr grc/data/platforms/python/blocks
Date: Sun, 15 Mar 2009 14:12:06 -0600 (MDT)

Author: jcorgan
Date: 2009-03-15 14:12:06 -0600 (Sun, 15 Mar 2009)
New Revision: 10619

Modified:
   gnuradio/branches/releases/3.2/
   
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.cc
   
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.h
   
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.i
   gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.cc.t
   gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.h.t
   gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.i.t
   gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.cc.t
   gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.h.t
   gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.i.t
   gnuradio/branches/releases/3.2/gnuradio-core/src/python/gnuradio/gr/pubsub.py
   
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_divide_xx.xml
   
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_float_to_complex.xml
   gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_sub_xx.xml
Log:
Applied changeset r10597:10599 to release 3.2 branch.


Property changes on: gnuradio/branches/releases/3.2
___________________________________________________________________
Modified: svn:mergeinfo
   - /gnuradio/branches/developers/michaelld/am_swig_4:10555-10595
/gnuradio/branches/developers/michaelld/two_mods:10540-10546
/gnuradio/trunk:10356-10359,10481-10482,10497-10499,10506-10507,10511,10514,10521,10523-10524,10529,10531,10535,10537-10538,10550-10551,10556,10558-10560,10562-10563,10565,10574-10576,10578-10579,10581-10582,10585,10587,10596-10597,10600
   + /gnuradio/branches/developers/michaelld/am_swig_4:10555-10595
/gnuradio/branches/developers/michaelld/two_mods:10540-10546
/gnuradio/trunk:10356-10359,10481-10482,10497-10499,10506-10507,10511,10514,10521,10523-10524,10529,10531,10535,10537-10538,10550-10551,10556,10558-10560,10562-10563,10565,10574-10576,10578-10579,10581-10582,10585,10587,10596-10600

Modified: 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.cc
===================================================================
--- 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.cc
 2009-03-15 20:07:08 UTC (rev 10618)
+++ 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.cc
 2009-03-15 20:12:06 UTC (rev 10619)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -28,15 +28,16 @@
 #include <gr_io_signature.h>
 
 gr_float_to_complex_sptr
-gr_make_float_to_complex ()
+gr_make_float_to_complex (size_t vlen)
 {
-  return gr_float_to_complex_sptr (new gr_float_to_complex ());
+  return gr_float_to_complex_sptr (new gr_float_to_complex (vlen));
 }
 
-gr_float_to_complex::gr_float_to_complex ()
+gr_float_to_complex::gr_float_to_complex (size_t vlen)
   : gr_sync_block ("gr_float_to_complex",
-                  gr_make_io_signature (1, 2, sizeof (float)),
-                  gr_make_io_signature (1, 1, sizeof (gr_complex)))
+                  gr_make_io_signature (1, 2, sizeof (float) *  vlen),
+                  gr_make_io_signature (1, 1, sizeof (gr_complex) * vlen)),
+  d_vlen (vlen)
 {
 }
 
@@ -51,12 +52,12 @@
 
   switch (input_items.size ()){
   case 1:
-    for (int j = 0; j < noutput_items; j++)
+    for (int j = 0; j < noutput_items*d_vlen; j++)
       out[j] = gr_complex (r[j], 0);
     break;
 
   case 2:
-    for (int j = 0; j < noutput_items; j++)
+    for (int j = 0; j < noutput_items*d_vlen; j++)
       out[j] = gr_complex (r[j], i[j]);
     break;
 

Modified: 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.h
===================================================================
--- 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.h
  2009-03-15 20:07:08 UTC (rev 10618)
+++ 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.h
  2009-03-15 20:12:06 UTC (rev 10619)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -30,7 +30,7 @@
 typedef boost::shared_ptr<gr_float_to_complex> gr_float_to_complex_sptr;
 
 gr_float_to_complex_sptr
-gr_make_float_to_complex ();
+gr_make_float_to_complex (size_t vlen = 1);
 
 /*!
  * \brief Convert 1 or 2 streams of float to a stream of gr_complex
@@ -39,9 +39,11 @@
 
 class gr_float_to_complex : public gr_sync_block
 {
-  friend gr_float_to_complex_sptr gr_make_float_to_complex ();
-  gr_float_to_complex ();
+  friend gr_float_to_complex_sptr gr_make_float_to_complex (size_t vlen);
+  gr_float_to_complex (size_t vlen);
 
+  size_t d_vlen;
+
  public:
   virtual int work (int noutput_items,
                    gr_vector_const_void_star &input_items,

Modified: 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.i
===================================================================
--- 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.i
  2009-03-15 20:07:08 UTC (rev 10618)
+++ 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/general/gr_float_to_complex.i
  2009-03-15 20:12:06 UTC (rev 10619)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -22,9 +22,9 @@
 
 GR_SWIG_BLOCK_MAGIC(gr,float_to_complex)
 
-gr_float_to_complex_sptr gr_make_float_to_complex ();
+gr_float_to_complex_sptr gr_make_float_to_complex (size_t vlen = 1);
 
 class gr_float_to_complex : public gr_sync_block
 {
-  gr_float_to_complex ();
+  gr_float_to_complex (size_t vlen);
 };

Modified: 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.cc.t
===================================================================
--- 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.cc.t   
    2009-03-15 20:07:08 UTC (rev 10618)
+++ 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.cc.t   
    2009-03-15 20:12:06 UTC (rev 10619)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -30,15 +30,16 @@
 #include <gr_io_signature.h>
 
 @SPTR_NAME@
address@hidden@ ()
address@hidden@ (size_t vlen)
 {
-  return @SPTR_NAME@ (new @NAME@ ());
+  return @SPTR_NAME@ (new @NAME@ (vlen));
 }
 
address@hidden@::@NAME@ ()
address@hidden@::@NAME@ (size_t vlen)
   : gr_sync_block ("@BASE_NAME@",
-                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)),
-                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)))
+                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)*vlen),
+                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)*vlen)),
+  d_vlen (vlen)
 {
 }
 
@@ -52,13 +53,13 @@
   int ninputs = input_items.size ();
 
   if (ninputs == 1){           // compute reciprocal
-    for (int i = 0; i < noutput_items; i++)
+    for (int i = 0; i < noutput_items*d_vlen; i++)
       *optr++ = (@O_TYPE@) ((@O_TYPE@) 1 /
                            ((@I_TYPE@ *) input_items[0])[i]);
   }
 
   else {
-    for (int i = 0; i < noutput_items; i++){
+    for (int i = 0; i < noutput_items*d_vlen; i++){
       @I_TYPE@ acc = ((@I_TYPE@ *) input_items[0])[i];
       for (int j = 1; j < ninputs; j++)
        acc /= ((@I_TYPE@ *) input_items[j])[i];

Modified: 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.h.t
===================================================================
--- 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.h.t    
    2009-03-15 20:07:08 UTC (rev 10618)
+++ 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.h.t    
    2009-03-15 20:12:06 UTC (rev 10619)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -30,7 +30,7 @@
 class @NAME@;
 typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
 
address@hidden@ address@hidden@ ();
address@hidden@ address@hidden@ (size_t vlen = 1);
 
 /*!
  * \brief output = input_0 / input_1 / input_x ...)
@@ -40,10 +40,12 @@
  */
 class @NAME@ : public gr_sync_block
 {
-  friend @SPTR_NAME@ address@hidden@ ();
+  friend @SPTR_NAME@ address@hidden@ (size_t vlen);
 
-  @NAME@ ();
+  @NAME@ (size_t vlen);
 
+  size_t d_vlen;
+
  public:
 
   int work (int noutput_items,

Modified: 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.i.t
===================================================================
--- 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.i.t    
    2009-03-15 20:07:08 UTC (rev 10618)
+++ 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_divide_XX.i.t    
    2009-03-15 20:12:06 UTC (rev 10619)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -24,10 +24,10 @@
 
 GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
 
address@hidden@ address@hidden@ ();
address@hidden@ address@hidden@ (size_t vlen = 1);
 
 class @NAME@ : public gr_sync_block
 {
  private:
-  @NAME@ ();
+  @NAME@ (size_t vlen);
 };

Modified: 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.cc.t
===================================================================
--- gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.cc.t  
2009-03-15 20:07:08 UTC (rev 10618)
+++ gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.cc.t  
2009-03-15 20:12:06 UTC (rev 10619)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -30,15 +30,15 @@
 #include <gr_io_signature.h>
 
 @SPTR_NAME@
address@hidden@ ()
address@hidden@ (size_t vlen)
 {
-  return @SPTR_NAME@ (new @NAME@ ());
+  return @SPTR_NAME@ (new @NAME@ (vlen));
 }
 
address@hidden@::@NAME@ ()
address@hidden@::@NAME@ (size_t vlen)
   : gr_sync_block ("@BASE_NAME@",
-                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)),
-                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)))
+                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)*vlen),
+                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)*vlen))
 {
 }
 
@@ -52,12 +52,12 @@
   int ninputs = input_items.size ();
 
   if (ninputs == 1){           // negate
-    for (int i = 0; i < noutput_items; i++)
+    for (int i = 0; i < noutput_items*d_vlen; i++)
       *optr++ = (@O_TYPE@) -((@I_TYPE@ *) input_items[0])[i];
   }
 
   else {
-    for (int i = 0; i < noutput_items; i++){
+    for (int i = 0; i < noutput_items*d_vlen; i++){
       @I_TYPE@ acc = ((@I_TYPE@ *) input_items[0])[i];
       for (int j = 1; j < ninputs; j++)
        acc -= ((@I_TYPE@ *) input_items[j])[i];

Modified: 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.h.t
===================================================================
--- gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.h.t   
2009-03-15 20:07:08 UTC (rev 10618)
+++ gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.h.t   
2009-03-15 20:12:06 UTC (rev 10619)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -30,7 +30,7 @@
 class @NAME@;
 typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
 
address@hidden@ address@hidden@ ();
address@hidden@ address@hidden@ (size_t vlen = 1);
 
 /*!
  * \brief output = input_0 -  input_1 - ...)
@@ -40,10 +40,12 @@
  */
 class @NAME@ : public gr_sync_block
 {
-  friend @SPTR_NAME@ address@hidden@ ();
+  friend @SPTR_NAME@ address@hidden@ (size_t vlen);
 
-  @NAME@ ();
+  @NAME@ (size_t vlen);
 
+  size_t d_vlen;
+
  public:
 
   int work (int noutput_items,

Modified: 
gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.i.t
===================================================================
--- gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.i.t   
2009-03-15 20:07:08 UTC (rev 10618)
+++ gnuradio/branches/releases/3.2/gnuradio-core/src/lib/gengen/gr_sub_XX.i.t   
2009-03-15 20:12:06 UTC (rev 10619)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -24,10 +24,10 @@
 
 GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
 
address@hidden@ address@hidden@ ();
address@hidden@ address@hidden@ (size_t vlen = 1);
 
 class @NAME@ : public gr_sync_block
 {
  private:
-  @NAME@ ();
+  @NAME@ (size_t vlen);
 };


Property changes on: 
gnuradio/branches/releases/3.2/gnuradio-core/src/python/gnuradio/gr/pubsub.py
___________________________________________________________________
Modified: svn:mergeinfo
   - 
/gnuradio/branches/developers/michaelld/two_mods/gr-wxgui/src/python/pubsub.py:10540-10546
/gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/pubsub.py:10576,10582,10587,10596-10597
   + 
/gnuradio/branches/developers/michaelld/two_mods/gr-wxgui/src/python/pubsub.py:10540-10546
/gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/pubsub.py:10576,10582,10587,10596-10599

Modified: 
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_divide_xx.xml
===================================================================
--- 
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_divide_xx.xml
    2009-03-15 20:07:08 UTC (rev 10618)
+++ 
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_divide_xx.xml
    2009-03-15 20:12:06 UTC (rev 10619)
@@ -9,7 +9,7 @@
        <name>Divide</name>
        <key>gr_divide_xx</key>
        <import>from gnuradio import gr</import>
-       <make>gr.divide_$(type.fcn)()</make>
+       <make>gr.divide_$(type.fcn)($vlen)</make>
        <param>
                <name>IO Type</name>
                <key>type</key>
@@ -36,19 +36,28 @@
                </option>
        </param>
        <param>
+               <name>Vec Length</name>
+               <key>vlen</key>
+               <value>1</value>
+               <type>int</type>
+       </param>
+       <param>
                <name>Num Inputs</name>
                <key>num_inputs</key>
                <value>2</value>
                <type>int</type>
        </param>
+       <check>$vlen &gt; 0</check>
        <check>$num_inputs &gt;= 2</check>
        <sink>
                <name>in</name>
                <type>$type</type>
+               <vlen>$vlen</vlen>
                <nports>$num_inputs</nports>
        </sink>
        <source>
                <name>out</name>
                <type>$type</type>
+               <vlen>$vlen</vlen>
        </source>
 </block>

Modified: 
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_float_to_complex.xml
===================================================================
--- 
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_float_to_complex.xml
     2009-03-15 20:07:08 UTC (rev 10618)
+++ 
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_float_to_complex.xml
     2009-03-15 20:12:06 UTC (rev 10619)
@@ -9,18 +9,28 @@
        <name>Float To Complex</name>
        <key>gr_float_to_complex</key>
        <import>from gnuradio import gr</import>
-       <make>gr.float_to_complex()</make>
+       <make>gr.float_to_complex($vlen)</make>
+       <param>
+               <name>Vec Length</name>
+               <key>vlen</key>
+               <value>1</value>
+               <type>int</type>
+       </param>
+       <check>$vlen &gt; 0</check>
        <sink>
                <name>in</name>
                <type>float</type>
+               <vlen>$vlen</vlen>
        </sink>
        <sink>
                <name>in</name>
                <type>float</type>
+               <vlen>$vlen</vlen>
                <optional>1</optional>
        </sink>
        <source>
                <name>out</name>
                <type>complex</type>
+               <vlen>$vlen</vlen>
        </source>
 </block>

Modified: 
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_sub_xx.xml
===================================================================
--- 
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_sub_xx.xml   
    2009-03-15 20:07:08 UTC (rev 10618)
+++ 
gnuradio/branches/releases/3.2/grc/data/platforms/python/blocks/gr_sub_xx.xml   
    2009-03-15 20:12:06 UTC (rev 10619)
@@ -9,7 +9,7 @@
        <name>Subtract</name>
        <key>gr_sub_xx</key>
        <import>from gnuradio import gr</import>
-       <make>gr.sub_$(type.fcn)()</make>
+       <make>gr.sub_$(type.fcn)($vlen)</make>
        <param>
                <name>IO Type</name>
                <key>type</key>
@@ -36,19 +36,28 @@
                </option>
        </param>
        <param>
+               <name>Vec Length</name>
+               <key>vlen</key>
+               <value>1</value>
+               <type>int</type>
+       </param>
+       <param>
                <name>Num Inputs</name>
                <key>num_inputs</key>
                <value>2</value>
                <type>int</type>
        </param>
+       <check>$vlen &gt; 0</check>
        <check>$num_inputs &gt;= 2</check>
        <sink>
                <name>in</name>
                <type>$type</type>
+               <vlen>$vlen</vlen>
                <nports>$num_inputs</nports>
        </sink>
        <source>
                <name>out</name>
                <type>$type</type>
+               <vlen>$vlen</vlen>
        </source>
 </block>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]