Fix building with new GNU Radio firdes API. No functional change, since WIN_HAMMING is the default

This commit is contained in:
Carles Fernandez 2020-12-19 12:40:57 +01:00
parent a9de3d4244
commit 42efb68310
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
4 changed files with 4 additions and 8 deletions

View File

@ -55,8 +55,7 @@ MmseResamplerConditioner::MmseResamplerConditioner(
std::vector<float> taps = gr::filter::firdes::low_pass(1.0,
sample_freq_in_,
sample_freq_out_ / 2.1,
sample_freq_out_ / 5,
gr::filter::firdes::win_type::WIN_HAMMING);
sample_freq_out_ / 5);
std::cout << "Enabled fractional resampler low pass filter with " << taps.size() << " taps\n";
fir_filter_ccf_ = gr::filter::fir_filter_ccf::make(1, taps);

View File

@ -464,8 +464,7 @@ void GNSSFlowgraph::connect()
std::vector<float> taps = gr::filter::firdes::low_pass(1.0,
fs,
acq_fs_decimated / 2.1,
acq_fs_decimated / 2,
gr::filter::firdes::win_type::WIN_HAMMING);
acq_fs_decimated / 2);
gr::basic_block_sptr fir_filter_ccf_ = gr::filter::fir_filter_ccf::make(decimation, taps);

View File

@ -544,8 +544,7 @@ bool HybridObservablesTest::acquire_signal()
taps = gr::filter::firdes::low_pass(1.0,
baseband_sampling_freq,
acq_fs / 2.1,
acq_fs / 10,
gr::filter::firdes::win_type::WIN_HAMMING);
acq_fs / 10);
std::cout << "Enabled decimation low pass filter with " << taps.size() << " taps and decimation factor of " << decimation << '\n';
acquisition->set_resampler_latency((taps.size() - 1) / 2);
gr::basic_block_sptr fir_filter_ccf_ = gr::filter::fir_filter_ccf::make(decimation, taps);

View File

@ -558,8 +558,7 @@ bool TrackingPullInTest::acquire_signal(int SV_ID)
taps = gr::filter::firdes::low_pass(1.0,
baseband_sampling_freq,
acq_fs / 2.1,
acq_fs / 10,
gr::filter::firdes::win_type::WIN_HAMMING);
acq_fs / 10);
std::cout << "Enabled decimation low pass filter with " << taps.size() << " taps and decimation factor of " << decimation << '\n';
acquisition->set_resampler_latency((taps.size() - 1) / 2);
gr::basic_block_sptr fir_filter_ccf_ = gr::filter::fir_filter_ccf::make(decimation, taps);