I am trying to create an io signature with multiple inputs greater than 3
using makev.  in order to do this, I learned to do it according to the code
below.  My issue is that I need to derive the input sizes from the input
arguments but I don't know how I would do that.  I imagine using a separate
function but I am just learning objects and do not know how I would word it
specifically for gnuradio. An example would be extremely helpful. Any help
much appreciated.


    //static int ios[] = {sizeof(gr_complex)*nAz*M, sizeof(gr_complex)*M*M,
sizeof(gr_complex)*M*L, sizeof(float)}; //but I want to get this line to
work instead
    static int ios[] = {sizeof(gr_complex)*121*4, sizeof(gr_complex)*4*4,
sizeof(gr_complex)*4*128, sizeof(float)}; //this line already works...^^^
    static std::vector<int> iosig(ios, ios+sizeof(ios)/sizeof(int));

    /*
     * The private constructor
     */
    MVDR_impl::MVDR_impl(int L, int M, int nAz, float InitialLook)
      : gr::sync_block("MVDR",
                gr::io_signature::makev(4, 4, iosig),
                //gr::io_signature::makev(4, 4, sizeof(gr_complex)*nAz*M,
sizeof(gr_complex)*M*M, sizeof(gr_complex)*M*L, sizeof(float) ),
        //steering vectors (all), covariance matrix (RXX),look direction
(LookDir), origional MxL IQ Data matrix

        gr::io_signature::make(1, 1, sizeof(gr_complex)*L)), //"steered"
data
            d_L(L),
                d_M(M),
        d_nAz(nAz),
        d_InitialLook(InitialLook) //not used currently
    {}
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to