The dvb_bbheader_bb_impl.cc module in gr-dtv also uses
set_output_multiple().
Ron
On 09/28/2015 08:36 PM, Kolya wrote:
Hi Martin and Sylvain,
I obviously didn't understand the forecast function properly but with your
help it works now. I tried both:
set_output_multiple & a correct forecast()
Hi Martin and Sylvain,
I obviously didn't understand the forecast function properly but with your
help it works now. I tried both:
set_output_multiple & a correct forecast()
and
set_output_multiple & set_relative_rate
both approaches worked as expected :)
What threw me off was that I had bas
On 27.09.2015 15:25, Kolya wrote:
> Hi,
>
> I'm trying to build a custom block that takes in a stream of input samples
> and simply adds a postamble of 32bits every 352 bits. The package structure
> is illustrated below (payload_bits = msg_bits+postamble_bits):
> --
> /void
> bbframer_bb_impl::forecast (int noutput_items, gr_vector_int
> &ninput_items_required)
> {
> ninput_items_required[0] = ((noutput_items - 32) / 8); // 32 bit
> postamble
> }/
You should make sure forecast can never return <0 or even ==0 numbers.
Returning 0 means
Hi,
I'm trying to build a custom block that takes in a stream of input samples
and simply adds a postamble of 32bits every 352 bits. The package structure
is illustrated below (payload_bits = msg_bits+postamble_bits):
---
| msg_bits = 3