Tuesday, February 22, 2022

Re: Are there firls and kaiser filter methods for C++ OOT?

Hi George,

On 21/02/2022 18.31, George Edwards wrote:
> lpfilter = gr::filter::firdes::low_pass(gain, sampling_freq, cutoff_freq, transition_bandwidth,
> fft::window::win_type <https://www.gnuradio.org/doc/doxygen/classgr_1_1fft_1_1window.html#a599d7e9625d6cc77203a8b877c4911e2>window = fft::window::win_type::WIN_HAMMING, beta = 6.76);
>
> This failed and showed a squidly across the line with fft::window::win_type....!

Try adding "gr::" before "fft::window" and make sure gnuradio/fft/window.h is included.

#include <gnuradio/fft/window.h>

lpfilter = gr::filter::firdes::low_pass(gain, sampling_freq, cutoff_freq, transition_bandwidth,
gr::fft::window::win_type window = fft::window::win_type::WIN_HAMMING, beta = 6.76);

If this does not fix it then provide the exact error you are getting.

Regards,
Vasil

No comments:

Post a Comment