1
0
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:
Unknown
2017-10-17 11:44:23 +02:00
parent 0aa178b3ab
commit 9a74120e7c
7 changed files with 187 additions and 7 deletions

View File

@@ -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)),

View File

@@ -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)

View File

@@ -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);

View File

@@ -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]);