Re: [Discuss-gnuradio] Implementing a FIR Filter

2015-08-20 Thread Richard Bell
I got this working. For completeness, I'll answer my own questions and sum up what I've learned about filtering. 1) You need to call set_history(num_filter_taps) so that block boundaries are handled smoothly 2) You input samples one at a time to fir_filter_xxf 3) fir_filter_xxf does not store

Re: [Discuss-gnuradio] Implementing a FIR Filter

2015-08-20 Thread Richard Bell
I have a fundamental misunderstanding of the filter system in gnuradio. I would appreciate some help. I wrote a simple C++ testbench to help me figure out what's going on, but it continues to not behave as I expect. I am using fir_filter_fff with 29 taps that I set. I send an impulse into the

Re: [Discuss-gnuradio] Implementing a FIR Filter

2015-08-20 Thread Tom Rondeau
On Wed, Aug 19, 2015 at 2:17 PM, Richard Bell richard.be...@gmail.com wrote: I'm having some trouble getting my code to compile. I get the following error: error: ‘kernel’ does not name a type kernel::fir_filter_ccf *d_shape_filter; To my *_impl.h file I added the following:

Re: [Discuss-gnuradio] Implementing a FIR Filter

2015-08-19 Thread Richard Bell
Thank you Jeff. Those are perfect. Rich On Tue, Aug 18, 2015 at 3:34 PM, Jeff Long willco...@gmail.com wrote: Rich, hilbert_fc.cc and filter_delay_fc both use kernel::fir_filter in a relatively easy to understand way. Jeff On 08/18/2015 04:26 PM, Richard Bell wrote: Hi all, Would

Re: [Discuss-gnuradio] Implementing a FIR Filter

2015-08-19 Thread Richard Bell
I'm having some trouble getting my code to compile. I get the following error: error: ‘kernel’ does not name a type kernel::fir_filter_ccf *d_shape_filter; To my *_impl.h file I added the following: #include gnuradio/filter/fir_filter.h private: kernel::fir_filter_ccf

Re: [Discuss-gnuradio] Implementing a FIR Filter

2015-08-19 Thread Richard Bell
That fixed the problem. Thank you. Rich On Wed, Aug 19, 2015 at 11:56 AM, Tom Rondeau t...@trondeau.com wrote: On Wed, Aug 19, 2015 at 2:17 PM, Richard Bell richard.be...@gmail.com wrote: I'm having some trouble getting my code to compile. I get the following error: error: ‘kernel’ does

[Discuss-gnuradio] Implementing a FIR Filter

2015-08-18 Thread Richard Bell
Hi all, Would someone please recommend a good starting point in C++ source code that demonstrates how one uses the kernel::fir_filter. I started following the pfb_clock_sync method of implementing it, but then realized this had been customized a bit for the polyphase approach. I'm not doing

Re: [Discuss-gnuradio] Implementing a FIR Filter

2015-08-18 Thread Jeff Long
Rich, hilbert_fc.cc and filter_delay_fc both use kernel::fir_filter in a relatively easy to understand way. Jeff On 08/18/2015 04:26 PM, Richard Bell wrote: Hi all, Would someone please recommend a good starting point in C++ source code that demonstrates how one uses the