GNSS-SDR  0.0.13
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  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
16  *
17  * GNSS-SDR is a software defined Global Navigation
18  * Satellite Systems receiver
19  *
20  * This file is part of GNSS-SDR.
21  *
22  * SPDX-License-Identifier: GPL-3.0-or-later
23  *
24  * -----------------------------------------------------------------------------
25  */
26 
27 #ifndef GNSS_SDR_GPS_L1_CA_TCP_CONNECTOR_TRACKING_H
28 #define GNSS_SDR_GPS_L1_CA_TCP_CONNECTOR_TRACKING_H
29 
31 #include "tracking_interface.h"
32 #include <string>
33 
34 
36 
37 /*!
38  * \brief This class implements a code DLL + carrier PLL tracking loop
39  */
41 {
42 public:
44  const ConfigurationInterface* configuration,
45  const std::string& role,
46  unsigned int in_streams,
47  unsigned int out_streams);
48 
49  ~GpsL1CaTcpConnectorTracking() = default;
50 
51  inline std::string role() override
52  {
53  return role_;
54  }
55 
56  //! Returns "GPS_L1_CA_TCP_CONNECTOR_Tracking"
57  inline std::string implementation() override
58  {
59  return "GPS_L1_CA_TCP_CONNECTOR_Tracking";
60  }
61 
62  inline size_t item_size() override
63  {
64  return item_size_;
65  }
66 
67  void connect(gr::top_block_sptr top_block) override;
68  void disconnect(gr::top_block_sptr top_block) override;
69  gr::basic_block_sptr get_left_block() override;
70  gr::basic_block_sptr get_right_block() override;
71 
72  /*!
73  * \brief Set tracking channel unique ID
74  */
75  void set_channel(unsigned int channel) override;
76 
77  /*!
78  * \brief Set acquisition/tracking common Gnss_Synchro object pointer
79  * to efficiently exchange synchronization data between acquisition and tracking blocks
80  */
81  void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) override;
82 
83  void start_tracking() override;
84 
85  /*!
86  * \brief Stop running tracking
87  */
88  void stop_tracking() override;
89 
90 private:
91  gps_l1_ca_tcp_connector_tracking_cc_sptr tracking_;
92  size_t item_size_;
93  unsigned int channel_;
94  std::string role_;
95  unsigned int in_streams_;
96  unsigned int out_streams_;
97 };
98 
99 #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:33
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.