1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-09-30 07:50:51 +00:00

Minor changes in notch filter files

This commit is contained in:
Antonio Ramos 2017-06-15 10:00:20 +02:00
parent 2731be3939
commit 3ed545ac3f
3 changed files with 86 additions and 1 deletions

View File

@ -0,0 +1,75 @@
/*!
* \file notch_filter.cc
* \brief Adapts a gnuradio gr_notch_filter
* \author Antonio Ramos, 2017. antonio.ramosdet(at)gmail.com
*
*
* -------------------------------------------------------------------------
*
* Copyright (C) 2010-2017 (see AUTHORS file for a list of contributors)
*
* GNSS-SDR is a software defined Global Navigation
* Satellite Systems receiver
*
* This file is part of GNSS-SDR.
*
* GNSS-SDR is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GNSS-SDR is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>.
*
* -------------------------------------------------------------------------
*/
#include "notch_filter.h"
#include <boost/lexical_cast.hpp>
#include <glog/logging.h>
#include <volk/volk.h>
#include "configuration_interface.h"
using google::LogMessage;
NotchFilter::NotchFilter(ConfigurationInterface* configuration, std::string role,
unsigned int in_streams, unsigned int out_streams) :
config_(configuration), role_(role), in_streams_(in_streams),
out_streams_(out_streams)
{
(*this).init();
}
NotchFilter::~NotchFilter()
{}
void NotchFilter::connect(gr::top_block_sptr top_block)
{
}
void NotchFilter::disconnect(gr::top_block_sptr top_block)
{
}
gr::basic_block_sptr NotchFilter::get_left_block()
{
}
gr::basic_block_sptr NotchFilter::get_right_block()
{
}
void NotchFilter::init()
{
}

View File

@ -69,7 +69,17 @@ public:
gr::basic_block_sptr get_right_block();
private:
gr::filter::iir_filter_ccc::sptr iir_filter_ccf_;
ConfigurationInterface* config_;
bool dump_;
std::string dump_filename_;
std::string input_item_type_;
std::string output_item_type_;
std::string role_;
unsigned int in_streams_;
unsigned int out_streams_;
gr::blocks::file_sink::sptr file_sink_;
void init();
};

View File

@ -33,4 +33,4 @@
#endif
#endif //GNSS_SDR_NOTCH_H_