discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Vasil Velichkov
Subject: Re: Are there firls and kaiser filter methods for C++ OOT?
Date: Tue, 22 Feb 2022 14:14:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]