discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] questions about get_tags_in_range


From: Martin Braun
Subject: Re: [Discuss-gnuradio] questions about get_tags_in_range
Date: Thu, 07 Aug 2014 10:16:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Xianda,

if you don't know commands, you can look them up in the manual.
http://gnuradio.org/doc/doxygen/classgr_1_1block.html#aa0272555827fe26a1878e53ce4be092c

M

On 08/07/2014 08:10 AM, xianda wrote:
> Hi all:
>         I'm reading the source code ofdm_chanest_vcvc_impl.cc.And I
> don't know this command:
>         // Propagate tags
>         std::vector<gr::tag_t> tags;
>         get_tags_in_range(tags, 0,nitems_read(0), nitems_read(0)+framesize);
> 
>        I will try my best to explain my question more clearly.
>   1. I read:
>       void ofdm_chanest_vcvc_impl::forecast (int noutput_items,
> gr_vector_int &ninput_items_required)
>      {
>        ninput_items_required[0] = (noutput_items/d_n_data_syms) *
> (d_n_data_syms + d_n_sync_syms);
>      }
>      And I think ninput_items_required[0] = (1/1) * (1 + 2)=3.
>      Then nitems_read(0)=3.Is it right?(nitems_read:Return the number of
> items read on input stream which_input. )
>   2. const int framesize = d_n_sync_syms + d_n_data_syms; 
>      Then framesize=2+1=3.
>   3.Then get_tags_in_range(tags, 0,nitems_read(0),
> nitems_read(0)+framesize);---->>>get_tags_in_range(tags, 0,3, 6);
>      But:
>      {0 1 2}--->>>blk--->>>{0}
>      It don't have 3 4 5 item.Can someone explain it to me?Thank you.
> Best regards,
> xd
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 




reply via email to

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