2014-06-10 16:58:17 +00:00
|
|
|
/*!
|
|
|
|
* \file hybrid_observables_cc.h
|
|
|
|
* \brief Interface of the observables computation block for Galileo E1
|
|
|
|
* \author Mara Branzanti 2013. mara.branzanti(at)gmail.com
|
|
|
|
* \author Javier Arribas 2013. 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-06-10 16:58:17 +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-06-10 16:58:17 +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/>.
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2016-01-04 21:56:52 +00:00
|
|
|
#ifndef GNSS_SDR_HYBRID_OBSERVABLES_CC_H
|
|
|
|
#define GNSS_SDR_HYBRID_OBSERVABLES_CC_H
|
2014-06-10 16:58:17 +00:00
|
|
|
|
|
|
|
#include <fstream>
|
|
|
|
#include <string>
|
|
|
|
#include <gnuradio/block.h>
|
|
|
|
#include <gnuradio/msg_queue.h>
|
2016-01-04 17:06:54 +00:00
|
|
|
|
2014-06-10 16:58:17 +00:00
|
|
|
|
|
|
|
class hybrid_observables_cc;
|
|
|
|
|
|
|
|
typedef boost::shared_ptr<hybrid_observables_cc> hybrid_observables_cc_sptr;
|
|
|
|
|
|
|
|
hybrid_observables_cc_sptr
|
|
|
|
hybrid_make_observables_cc(unsigned int n_channels, boost::shared_ptr<gr::msg_queue> queue, bool dump, std::string dump_filename, int output_rate_ms, bool flag_averaging);
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief This class implements a block that computes Galileo observables
|
|
|
|
*/
|
|
|
|
class hybrid_observables_cc : public gr::block
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
~hybrid_observables_cc ();
|
2015-05-15 02:41:32 +00:00
|
|
|
//void set_fs_in(unsigned long int fs_in) {d_fs_in = fs_in;};
|
2014-06-10 16:58:17 +00:00
|
|
|
int general_work (int noutput_items, gr_vector_int &ninput_items,
|
|
|
|
gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
|
|
|
|
|
|
|
|
private:
|
|
|
|
friend hybrid_observables_cc_sptr
|
|
|
|
hybrid_make_observables_cc(unsigned int nchannels, boost::shared_ptr<gr::msg_queue> queue, bool dump, std::string dump_filename, int output_rate_ms, bool flag_averaging);
|
|
|
|
hybrid_observables_cc(unsigned int nchannels, boost::shared_ptr<gr::msg_queue> queue, bool dump, std::string dump_filename, int output_rate_ms, bool flag_averaging);
|
|
|
|
|
|
|
|
// class private vars
|
|
|
|
boost::shared_ptr<gr::msg_queue> d_queue;
|
|
|
|
bool d_dump;
|
|
|
|
bool d_flag_averaging;
|
|
|
|
unsigned int d_nchannels;
|
|
|
|
int d_output_rate_ms;
|
|
|
|
std::string d_dump_filename;
|
|
|
|
std::ofstream d_dump_file;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|