文件中的general_work()方法里面。 while(oo<noutput_items&&ii<ni){// produce output sampleout[oo]=d_interp->interpolate(&in[ii],d_mu);mm_val=slice(d_last_sample)*out[oo]-slice(out[oo])*d_last_sample;d_last_sample=out[oo];d_omega=d_omega+d_gain_omega*mm_val;d_omega=d_omega...
可以从 forecast 函数的实现中看出端口的输入输出比均为 1:1 ,因此,根据之前教程的经验,在创建这个 block 时完全可以使用sync 接下来是主函数 general_work() 的修改。 int my_qpsk_demod_cb_impl::general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items...
general_work(int noutput_items,gr_vecor_int&ninput_items,gr_vector_const_void_star &input_items, gr_vector_void_star&output_items) noutput_items代表写至输出流的最小输出项数,ninput_items代表每个输入流中可利用的输入项数,input_items代表输入项的指针向量,每个输入流对应一个指针,output_items代表输...
void forecast(int noutput_items, gr_vector_int& ninput_items_required); int general_work(int noutput_items, gr_vector_int& ninput_items, gr_vector_const_void_star& input_items, gr_vector_void_star& output_items); }; } // namespace howto } // namespace gr #endif /* INCLUDED_HOW...
1. mathbase_sqrt_ff::general_work() 2. { 3. ... 4. for (int i = 0; i < noutput_items; i++){ 5. out[ i ]=in[ i ]*in[ i ]; 6. } 7. ... 8. } 9. 将out[ i ] = in[ i ]*in[ i ];改为 out[ i ] = sqrt(in[ i ]); 2)修改qa_howto.py 将验证数据...
def general_work(self, input_items, output_items): in0 = input_items[0] input complex stream out = output_items[0] output float stream out[:] =in0 (1j) modulation with carrier wave for i in range(len(in0)): update phase for next iteration += if > 2: -= 2 if < -2: += ...
`general_work` anyways at some point, if the system is unable to fulfill your forecast requirement. `set_output_multiple` is much more strict. In your case I'd start with: `ninput_items_required[0] = noutput_items` I've changed the `forecast`method accordingly, however I still get th...
Currently VOLK aims to run with optimized kernels on x86 with SSE/AVX and ARM with NEON. Support for MIPS and RISC-V is experimental; some kernels are known not to work on these architectures. We run tests on a variety of Ubuntu versions and aim to support as many current distros as po...
}intcos_source_impl::work(intnoutput_items, gr_vector_const_void_star&input_items, gr_vector_void_star&output_items) {//const <+ITYPE+> *in = (const <+ITYPE+> *) input_items[0];float*out= (float*) output_items[0];for(inti =0;i<noutput_items;i++) ...
In theory, any receiver which outputs complex samples at at least 2Msps should work via the file input or UDP input options, or by means of a Gnuradio interface. Multiple output formats are supported: * Raw (or minimally processed) output of packet data * Parsed text * SQLite database *...