mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-16 12:12:57 +00:00
Change parameter bw to be the cut-off frequency
This commit is contained in:
parent
a8ff283bac
commit
8fa965c75c
@ -83,9 +83,9 @@ PulseBlankingFilter::PulseBlankingFilter(ConfigurationInterface* configuration,
|
|||||||
double sampling_freq_ = config_->property(role_ + ".sampling_frequency", default_sampling_freq);
|
double sampling_freq_ = config_->property(role_ + ".sampling_frequency", default_sampling_freq);
|
||||||
double default_bw = 2000000.0;
|
double default_bw = 2000000.0;
|
||||||
double bw_ = config_->property(role_ + ".bw", default_bw);
|
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);
|
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_);
|
freq_xlating_ = gr::filter::freq_xlating_fir_filter_ccf::make(1, taps, if_, sampling_freq_);
|
||||||
}
|
}
|
||||||
if (dump_)
|
if (dump_)
|
||||||
|
Loading…
Reference in New Issue
Block a user