GNU Radio's SATNOGS Package
doppler_correction_cc.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * gr-satnogs: SatNOGS GNU Radio Out-Of-Tree Module
4 *
5 * Copyright (C) 2016,2019,2022 Libre Space Foundation <http://libre.space>
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef INCLUDED_SATNOGS_DOPPLER_CORRECTION_CC_H
22#define INCLUDED_SATNOGS_DOPPLER_CORRECTION_CC_H
23
26#include <gnuradio/sync_block.h>
27
28namespace gr {
29namespace satnogs {
30
31/*!
32 * \brief This block corrects the doppler effect between the ground
33 * station and the satellite. It takes the input stream in baseband
34 * and applies proper corrections to keep the carrier at the desired
35 * frequency. To achieve that it uses messages containing the absolute
36 * predicted frequency of the satellite from software like Gpredict.
37 *
38 * \ingroup satnogs
39 *
40 */
41class SATNOGS_API doppler_correction_cc : virtual public gr::sync_block
42{
43public:
44 using sptr = std::shared_ptr<doppler_correction_cc>;
45
46 /**
47 * @brief Generic Doppler correction block. The input is the complex signal at
48 * baseband from the SDR device.
49 *
50 * @param doppler a Doppler correction definition
51 * @param sampling_rate the sampling rate of the signal
52 * @param offset the frequency offset from the actual target frequency. This is very
53 * common on SDR receivers to avoid DC spikes at the center frequency. This block can
54 * automatically compensate this offset. The offset and the doppler shift are
55 * substracted for the final compensation.
56 * @param corrections_per_sec the number of the corrections every second that the
57 * block should perform
58 * @param doppler_tag_name the name of the stream tag indicating the Doppler offset
59 * from the center frequency
60 * @return sptr
61 */
63 double sampling_rate,
64 double offset = 0.0,
65 size_t corrections_per_sec = 1000,
66 const std::string& doppler_tag_name = "doppler");
67};
68
69} // namespace satnogs
70} // namespace gr
71
72#endif /* INCLUDED_SATNOGS_DOPPLER_CORRECTION_CC_H */
#define SATNOGS_API
Definition: api.h:19
This block corrects the doppler effect between the ground station and the satellite....
Definition: doppler_correction_cc.h:42
static sptr make(doppler_correction::sptr doppler, double sampling_rate, double offset=0.0, size_t corrections_per_sec=1000, const std::string &doppler_tag_name="doppler")
Generic Doppler correction block. The input is the complex signal at baseband from the SDR device.
std::shared_ptr< doppler_correction_cc > sptr
Definition: doppler_correction_cc.h:44
std::shared_ptr< doppler_correction > sptr
Definition: doppler_correction.h:41
Definition: amsat_duv_decoder.h:29