GNU Radio's SATNOGS Package
coarse_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, Libre Space Foundation <http://librespacefoundation.org/>
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_COARSE_DOPPLER_CORRECTION_CC_H
22 #define INCLUDED_SATNOGS_COARSE_DOPPLER_CORRECTION_CC_H
23 
24 #include <satnogs/api.h>
25 #include <gnuradio/sync_block.h>
26 
27 namespace gr {
28 namespace satnogs {
29 
30 /*!
31  * \brief This block corrects the doppler effect between the ground
32  * station and the satellite in a coarse and very simplified way.
33  * Instead of changing the hardware center frequency, we use an NCO
34  * to digitally compensate the doppler effect.
35  *
36  * \ingroup satnogs
37  *
38  */
39 class SATNOGS_API coarse_doppler_correction_cc : virtual public gr::sync_block {
40 public:
41  typedef boost::shared_ptr<coarse_doppler_correction_cc> sptr;
42 
43  /**
44  * The doppler correction block. The input is the complex signal at
45  * baseband as it comes from the SDR device.
46  *
47  * The message input \p freq receives periodically messages containing
48  * the predicted absolute frequency of the satellite at that specific time.
49  * @param target_freq the absolute frequency of the satellite
50  * @param offset the frequency offset from the actual target frequency.
51  * This is very common on SDR receivers to avoid DC spikes at the center
52  * frequency. This block can automatically compensate this offset
53  * @param sampling_rate the sampling rate of the signal
54  */
55  static sptr
56  make(double target_freq, double offset, double sampling_rate);
57 };
58 
59 } // namespace satnogs
60 } // namespace gr
61 
62 #endif /* INCLUDED_SATNOGS_COARSE_DOPPLER_CORRECTION_CC_H */
63 
This block corrects the doppler effect between the ground station and the satellite in a coarse and v...
Definition: coarse_doppler_correction_cc.h:39
Definition: amsat_duv_decoder.h:29
boost::shared_ptr< coarse_doppler_correction_cc > sptr
Definition: coarse_doppler_correction_cc.h:41
#define SATNOGS_API
Definition: api.h:30