Here's an example block that's very similar to what you want to do.
https://github.com/gnuradio/gnuradio/blob/master/gr-dtv/lib/catv/catv_frame_sync_enc_bb_impl.cc
Note the use of set_output_multiple() and the forecast function.
Ron
On 06/28/2016 10:48 AM, Olivier Goyette wrote:
I did a
Hi Olivier,
I can't find anything in your code that checks if you actually print
valid data. See [0] for a description of C++ GNU Radio blocks and how
they work.
Since you use a block of type 'block', make sure you get an idea of
'general_work' parameters, its return value and
I did a simple test :
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include
#include
#include "ADD_SYNC_impl.h"
#define TAB_SIZE 420
namespace gr {
namespace UAT {
ADD_SYNC::sptr
ADD_SYNC::make()
{
return gnuradio::get_initial_sptr
(new ADD_SYNC_impl());
}
Hi Olivier,
is there a reason, besides you print the values afterwards, that you
copy your input data to your tab array?
Write a test which puts in your frame and checks if the output is
prepended by your sync word. [syncword, payload].
Just write your preamble to the output buffer and then
Hi everyone,
I'm actually coding a SYNC block for my application. I need to append a 36
bits sync word to some data coming from a Reed Solomon encoder. What I did
is to initialize an array with my 36 bits sequence and then, plugging the
data in the rest of the array. The total length of my SYNC +