2014-02-18 19:40:44 +00:00
|
|
|
/*!
|
|
|
|
* \file array_signal_conditioner.h
|
|
|
|
* \brief It wraps blocks to change data type, filter and resample input data, adapted to array receiver
|
|
|
|
* \author Javier Arribas jarribas (at) cttc.es
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2015-01-08 18:49:59 +00:00
|
|
|
* Copyright (C) 2010-2015 (see AUTHORS file for a list of contributors)
|
2014-02-18 19:40:44 +00:00
|
|
|
*
|
|
|
|
* 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
|
2015-01-08 18:49:59 +00:00
|
|
|
* (at your option) any later version.
|
2014-02-18 19:40:44 +00:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GNSS_SDR_ARRAY_SIGNAL_CONDITIONER_H_
|
|
|
|
#define GNSS_SDR_ARRAY_SIGNAL_CONDITIONER_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <gnuradio/msg_queue.h>
|
|
|
|
#include "gnss_block_interface.h"
|
|
|
|
|
|
|
|
|
|
|
|
class ConfigurationInterface;
|
|
|
|
class AcquisitionInterface;
|
|
|
|
class TrackingInterface;
|
|
|
|
class TelemetryDecoderInterface;
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief This class wraps blocks to change data_type_adapter, input_filter and resampler
|
|
|
|
* to be applied to the input flow of sampled signal.
|
|
|
|
*/
|
|
|
|
class ArraySignalConditioner: public GNSSBlockInterface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//! Constructor
|
|
|
|
ArraySignalConditioner(ConfigurationInterface *configuration,
|
|
|
|
GNSSBlockInterface *data_type_adapt, GNSSBlockInterface *in_filt,
|
|
|
|
GNSSBlockInterface *res, std::string role, std::string implementation,
|
|
|
|
boost::shared_ptr<gr::msg_queue> queue);
|
|
|
|
|
|
|
|
//! Virtual destructor
|
|
|
|
virtual ~ArraySignalConditioner();
|
|
|
|
|
|
|
|
void connect(gr::top_block_sptr top_block);
|
|
|
|
void disconnect(gr::top_block_sptr top_block);
|
|
|
|
gr::basic_block_sptr get_left_block();
|
|
|
|
gr::basic_block_sptr get_right_block();
|
|
|
|
|
|
|
|
std::string role(){ return role_; }
|
|
|
|
//! Returns "Signal_Conditioner"
|
|
|
|
std::string implementation(){ return "Array_Signal_Conditioner"; }
|
|
|
|
size_t item_size(){ return 0; }
|
|
|
|
|
|
|
|
GNSSBlockInterface *data_type_adapter(){ return data_type_adapt_; }
|
|
|
|
GNSSBlockInterface *input_filter(){ return in_filt_; }
|
|
|
|
GNSSBlockInterface *resampler(){ return res_; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
GNSSBlockInterface *data_type_adapt_;
|
|
|
|
GNSSBlockInterface *in_filt_;
|
|
|
|
GNSSBlockInterface *res_;
|
|
|
|
std::string role_;
|
|
|
|
std::string implementation_;
|
|
|
|
bool connected_;
|
|
|
|
//bool stop_;
|
|
|
|
boost::shared_ptr<gr::msg_queue> queue_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /*GNSS_SDR_SIGNAL_CONDITIONER_H_*/
|