GNU Radio's SATNOGS Package
doppler_correction_cc_impl.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_IMPL_H
22#define INCLUDED_SATNOGS_DOPPLER_CORRECTION_CC_IMPL_H
23
24#include <gnuradio/blocks/rotator.h>
26
27
28namespace gr {
29namespace satnogs {
30
32{
33private:
34 const double m_samp_rate;
35 const double m_bb_offset;
36 const std::string m_tag_name;
37 const int m_update_period;
38 double m_last_offset;
39 doppler_correction::sptr m_doppler_src;
40 blocks::rotator m_rot;
41 int m_proccessed;
42
43 void reset(pmt::pmt_t msg);
44
45public:
47 double sampling_rate,
48 double offset = 0.0,
49 size_t corrections_per_sec = 1000,
50 const std::string& doppler_tag_name = "doppler");
51
53
54 bool start() override;
55
56 bool stop() override;
57
58 // Where all the action really happens
59 int work(int noutput_items,
60 gr_vector_const_void_star& input_items,
61 gr_vector_void_star& output_items) override;
62};
63
64} // namespace satnogs
65} // namespace gr
66
67#endif /* INCLUDED_SATNOGS_DOPPLER_CORRECTION_CC_IMPL_H */
Definition: doppler_correction_cc_impl.h:32
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) override
doppler_correction_cc_impl(doppler_correction::sptr doppler, double sampling_rate, double offset=0.0, size_t corrections_per_sec=1000, const std::string &doppler_tag_name="doppler")
This block corrects the doppler effect between the ground station and the satellite....
Definition: doppler_correction_cc.h:42
std::shared_ptr< doppler_correction > sptr
Definition: doppler_correction.h:41
Definition: amsat_duv_decoder.h:29