1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-16 18:19:58 +00:00

Change parameter bw to be the cut-off frequency

This commit is contained in:
Carles Fernandez 2017-11-06 19:27:41 +01:00
parent a8ff283bac
commit 8fa965c75c

View File

@ -83,9 +83,9 @@ PulseBlankingFilter::PulseBlankingFilter(ConfigurationInterface* configuration,
double sampling_freq_ = config_->property(role_ + ".sampling_frequency", default_sampling_freq);
double default_bw = 2000000.0;
double bw_ = config_->property(role_ + ".bw", default_bw);
double default_tw = bw_ / 20.0;
double default_tw = bw_ / 10.0;
double tw_ = config_->property(role_ + ".tw", default_tw);
const std::vector<float> taps = gr::filter::firdes::low_pass(1.0, sampling_freq_, bw_ / 2.0, tw_);
const std::vector<float> taps = gr::filter::firdes::low_pass(1.0, sampling_freq_, bw_ , tw_);
freq_xlating_ = gr::filter::freq_xlating_fir_filter_ccf::make(1, taps, if_, sampling_freq_);
}
if (dump_)