GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
hybrid_observables.h
Go to the documentation of this file.
1/*!
2 * \file hybrid_observables.h
3 * \brief Implementation of an adapter of an observables block accepting all kind
4 * of signals to a ObservablesInterface
5 * \author Mara Branzanti 2013. mara.branzanti(at)gmail.com
6 * \author Javier Arribas 2013. jarribas(at)cttc.es
7 *
8 * -----------------------------------------------------------------------------
9 *
10 * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
11 * This file is part of GNSS-SDR.
12 *
13 * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
14 * SPDX-License-Identifier: GPL-3.0-or-later
15 *
16 * -----------------------------------------------------------------------------
17 */
18
19
20#ifndef GNSS_SDR_HYBRID_OBSERVABLES_H
21#define GNSS_SDR_HYBRID_OBSERVABLES_H
22
23#include "gnss_synchro.h"
26#include <gnuradio/gr_complex.h> // for gr_complex
27#include <gnuradio/runtime_types.h> // for basic_block_sptr, top_block_sptr
28#include <cstddef>
29#include <string>
30
31/** \addtogroup Observables
32 * Classes for the computation of GNSS observables
33 * \{ */
34/** \addtogroup Observables_adapters obs_adapters
35 * Wrap GNU Radio observables blocks with an ObservablesInterface
36 * \{ */
37
39
40/*!
41 * \brief This class implements an ObservablesInterface for observables of all kind of GNSS signals
42 */
43class HybridObservables : public ObservablesInterface
44{
45public:
46 HybridObservables(const ConfigurationInterface* configuration,
47 const std::string& role,
48 unsigned int in_streams,
49 unsigned int out_streams);
50
51 ~HybridObservables() = default;
52
53 inline std::string role() override
54 {
55 return role_;
56 }
57
58 //! Returns "Hybrid_Observables"
59 inline std::string implementation() override
60 {
61 return "Hybrid_Observables";
62 }
63
64 void connect(gr::top_block_sptr top_block) override;
65 void disconnect(gr::top_block_sptr top_block) override;
66 gr::basic_block_sptr get_left_block() override;
67 gr::basic_block_sptr get_right_block() override;
68
69 inline void reset() override
70 {
71 return;
72 }
73
74 //! All blocks must have an item_size() function implementation
75 inline size_t item_size() override
76 {
77 return sizeof(Gnss_Synchro);
78 }
79
80private:
81 hybrid_observables_gs_sptr observables_;
82 std::string dump_filename_;
83 std::string role_;
84 unsigned int in_streams_;
85 unsigned int out_streams_;
86 bool dump_;
87 bool dump_mat_;
88};
89
90/** \} */
91/** \} */
92#endif
This abstract class represents an interface to configuration parameters.
This is the class that contains the information that is shared by the processing blocks.
std::string implementation() override
Returns "Hybrid_Observables".
size_t item_size() override
All blocks must have an item_size() function implementation.
This abstract class represents an interface to an observables block.
Interface of the Gnss_Synchro class.
Interface of the observables computation block.
This class represents an interface to an Observables block.