GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
gps_l1_ca_tcp_connector_tracking.h
Go to the documentation of this file.
1 /*!
2  * \file gps_l1_ca_tcp_connector_tracking.h
3  * \brief Interface of an adapter of a TCP connector block based on code DLL + carrier PLL
4  * for GPS L1 C/A to a TrackingInterface
5  * \author David Pubill, 2012. dpubill(at)cttc.es
6  * Javier Arribas, 2011. jarribas(at)cttc.es
7  *
8  * Code DLL + carrier PLL according to the algorithms described in:
9  * K.Borre, D.M.Akos, N.Bertelsen, P.Rinder, and S.H.Jensen,
10  * A Software-Defined GPS and Galileo Receiver. A Single-Frequency
11  * Approach, Birkhauser, 2007
12  *
13  * -----------------------------------------------------------------------------
14  *
15  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
16  * This file is part of GNSS-SDR.
17  *
18  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
19  * SPDX-License-Identifier: GPL-3.0-or-later
20  *
21  * -----------------------------------------------------------------------------
22  */
23 
24 #ifndef GNSS_SDR_GPS_L1_CA_TCP_CONNECTOR_TRACKING_H
25 #define GNSS_SDR_GPS_L1_CA_TCP_CONNECTOR_TRACKING_H
26 
28 #include "tracking_interface.h"
29 #include <string>
30 
31 /** \addtogroup Tracking
32  * \{ */
33 /** \addtogroup Tracking_adapters
34  * \{ */
35 
36 
38 
39 /*!
40  * \brief This class implements a code DLL + carrier PLL tracking loop
41  */
43 {
44 public:
46  const ConfigurationInterface* configuration,
47  const std::string& role,
48  unsigned int in_streams,
49  unsigned int out_streams);
50 
51  ~GpsL1CaTcpConnectorTracking() = default;
52 
53  inline std::string role() override
54  {
55  return role_;
56  }
57 
58  //! Returns "GPS_L1_CA_TCP_CONNECTOR_Tracking"
59  inline std::string implementation() override
60  {
61  return "GPS_L1_CA_TCP_CONNECTOR_Tracking";
62  }
63 
64  inline size_t item_size() override
65  {
66  return item_size_;
67  }
68 
69  void connect(gr::top_block_sptr top_block) override;
70  void disconnect(gr::top_block_sptr top_block) override;
71  gr::basic_block_sptr get_left_block() override;
72  gr::basic_block_sptr get_right_block() override;
73 
74  /*!
75  * \brief Set tracking channel unique ID
76  */
77  void set_channel(unsigned int channel) override;
78 
79  /*!
80  * \brief Set acquisition/tracking common Gnss_Synchro object pointer
81  * to efficiently exchange synchronization data between acquisition and tracking blocks
82  */
83  void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) override;
84 
85  void start_tracking() override;
86 
87  /*!
88  * \brief Stop running tracking
89  */
90  void stop_tracking() override;
91 
92 private:
93  gps_l1_ca_tcp_connector_tracking_cc_sptr tracking_sptr_;
94  std::string role_;
95  size_t item_size_;
96  unsigned int channel_;
97  unsigned int in_streams_;
98  unsigned int out_streams_;
99 };
100 
101 
102 /** \} */
103 /** \} */
104 #endif // GNSS_SDR_GPS_L1_CA_TCP_CONNECTOR_TRACKING_H
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
Interface of a TCP connector block based on code DLL + carrier PLL.
This class implements a code DLL + carrier PLL tracking loop.
This is the class that contains the information that is shared by the processing blocks.
Definition: gnss_synchro.h:38
This abstract class represents an interface to configuration parameters.
void stop_tracking() override
Stop running tracking.
std::string implementation() override
Returns "GPS_L1_CA_TCP_CONNECTOR_Tracking".
This abstract class represents an interface to a tracking block.
void set_channel(unsigned int channel) override
Set tracking channel unique ID.
This class represents an interface to a tracking block.