I have a flow graph where I try to change the modulation based on a stream tag. This is how I do it.
1- Based on a event add a 'modulation change tag' at the source block with the required modulation.
2-Inside the 'chunks_to_symbols_bc_impl.cc', I read the tag and change the symbol table based on the tag value.
3-Also inside 'repack_bits_bb_impl.cc' block I read the tag and change the d_l and d_k values based on the tag value.
4- When I run the code and add the tag from the source , the two blocks read the tag properly. However when it tries to change the symbol table it fails giving the following error.
python2: /usr/local/src/gnuradio/build/gr-digital/lib/chunks_to_symbols_bc_impl.cc:141: virtual int gr::digital::chunks_to_symbols_bc_impl::work(int, gr_vector_const_void_star&, gr_vector_void_star&): Assertion `((unsigned int)in[i]*d_D+d_D) <= d_symbol_table.size()' failed.
I appreciate if you could help me to get this this working.