mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-27 21:47:39 +00:00
Added Notch Filter Lite tests
Unit tests for Notch Lite input filter
This commit is contained in:
@@ -85,9 +85,9 @@ Notch::~Notch()
|
||||
void Notch::forecast(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items_required)
|
||||
{
|
||||
for(unsigned int aux = 0; aux < ninput_items_required.size(); aux++)
|
||||
{
|
||||
ninput_items_required[aux] = length_;
|
||||
}
|
||||
{
|
||||
ninput_items_required[aux] = length_;
|
||||
}
|
||||
}
|
||||
|
||||
int Notch::general_work(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items __attribute__((unused)),
|
||||
|
||||
@@ -85,6 +85,13 @@ NotchLite::~NotchLite()
|
||||
volk_free(power_spect);
|
||||
}
|
||||
|
||||
void NotchLite::forecast(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items_required)
|
||||
{
|
||||
for(unsigned int aux = 0; aux < ninput_items_required.size(); aux++)
|
||||
{
|
||||
ninput_items_required[aux] = length_;
|
||||
}
|
||||
}
|
||||
|
||||
int NotchLite::general_work(int noutput_items, gr_vector_int &ninput_items __attribute__((unused)),
|
||||
gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
|
||||
|
||||
@@ -74,6 +74,8 @@ public:
|
||||
|
||||
~NotchLite();
|
||||
|
||||
void forecast(int noutput_items, gr_vector_int &ninput_items_required);
|
||||
|
||||
int general_work (int noutput_items, gr_vector_int &ninput_items,
|
||||
gr_vector_const_void_star &input_items,
|
||||
gr_vector_void_star &output_items);
|
||||
|
||||
@@ -77,12 +77,12 @@ pulse_blanking_cc::~pulse_blanking_cc()
|
||||
void pulse_blanking_cc::forecast(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items_required)
|
||||
{
|
||||
for(unsigned int aux=0; aux < ninput_items_required.size(); aux++)
|
||||
{
|
||||
ninput_items_required[aux] = length_;
|
||||
}
|
||||
{
|
||||
ninput_items_required[aux] = length_;
|
||||
}
|
||||
}
|
||||
|
||||
int pulse_blanking_cc::general_work (int noutput_items __attribute__((unused)), gr_vector_int &ninput_items __attribute__((unused)),
|
||||
int pulse_blanking_cc::general_work (int noutput_items, gr_vector_int &ninput_items __attribute__((unused)),
|
||||
gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
|
||||
{
|
||||
const gr_complex* in = reinterpret_cast<const gr_complex *>(input_items[0]);
|
||||
|
||||
Reference in New Issue
Block a user