GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
gps_l1_ca_dll_pll_tracking.h
Go to the documentation of this file.
1 /*!
2  * \file gps_l1_ca_dll_pll_tracking.h
3  * \brief Interface of an adapter of a DLL+PLL tracking loop block
4  * for GPS L1 C/A to a TrackingInterface
5  * \author Carlos Aviles, 2010. carlos.avilesr(at)googlemail.com
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_DLL_PLL_TRACKING_H
25 #define GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_H
26 
27 #include "dll_pll_veml_tracking.h"
28 #include "tracking_interface.h"
29 #include <string>
30 
31 /** \addtogroup Tracking
32  * Classes for GNSS signal tracking.
33  * \{ */
34 /** \addtogroup Tracking_adapters tracking_adapters
35  * Wrap GNU Radio blocks for GNSS signal tracking with a TrackingInterface
36  * \{ */
37 
38 
40 
41 /*!
42  * \brief This class implements a code DLL + carrier PLL tracking loop
43  */
45 {
46 public:
48  const ConfigurationInterface* configuration,
49  const std::string& role,
50  unsigned int in_streams,
51  unsigned int out_streams);
52 
53  ~GpsL1CaDllPllTracking() = default;
54 
55  inline std::string role() override
56  {
57  return role_;
58  }
59 
60  //! Returns "GPS_L1_CA_DLL_PLL_Tracking"
61  inline std::string implementation() override
62  {
63  return "GPS_L1_CA_DLL_PLL_Tracking";
64  }
65 
66  inline size_t item_size() override
67  {
68  return item_size_;
69  }
70 
71  void connect(gr::top_block_sptr top_block) override;
72  void disconnect(gr::top_block_sptr top_block) override;
73  gr::basic_block_sptr get_left_block() override;
74  gr::basic_block_sptr get_right_block() override;
75 
76  /*!
77  * \brief Set tracking channel unique ID
78  */
79  void set_channel(unsigned int channel) override;
80 
81  /*!
82  * \brief Set acquisition/tracking common Gnss_Synchro object pointer
83  * to efficiently exchange synchronization data between acquisition and tracking blocks
84  */
85  void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) override;
86 
87  void start_tracking() override;
88 
89  /*!
90  * \brief Stop running tracking
91  */
92  void stop_tracking() override;
93 
94 private:
95  dll_pll_veml_tracking_sptr tracking_sptr_;
96  std::string role_;
97  size_t item_size_;
98  unsigned int channel_;
99  unsigned int in_streams_;
100  unsigned int out_streams_;
101 };
102 
103 
104 /** \} */
105 /** \} */
106 #endif // GNSS_SDR_GPS_L1_CA_DLL_PLL_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...
void set_channel(unsigned int channel) override
Set tracking channel unique ID.
std::string implementation() override
Returns "GPS_L1_CA_DLL_PLL_Tracking".
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.
Implementation of a code DLL + carrier PLL tracking block.
This abstract class represents an interface to a tracking block.
void stop_tracking() override
Stop running tracking.
This class implements a code DLL + carrier PLL tracking loop.
This class represents an interface to a tracking block.