GNU Radio's SATNOGS Package
rigctl_doppler_correction.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) 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 RIGCTL_DOPPLER_CORRECTION_H
22#define RIGCTL_DOPPLER_CORRECTION_H
23
24
27#include <hamlib/rigclass.h>
28
29namespace gr {
30namespace satnogs {
31
33{
34public:
36 make(double center_freq, rig_model_t model, vfo_t vfo = RIG_VFO_CURR);
37 void start() override;
38
39 void stop() override;
40
41 double offset() override;
42
43 void reset() override;
44
45 void set_vfo(vfo_t vfo);
46
47 void set_param(const std::string& name, const std::string& val);
48
49protected:
50 rigctl_doppler_correction(double center_freq,
51 rig_model_t model,
52 vfo_t vfo = RIG_VFO_CURR);
53
54private:
55 const double m_freq;
56 vfo_t m_vfo;
57 Rig m_rig;
58};
59
60} // namespace satnogs
61} // namespace gr
62
63#endif // RIGCTL_DOPPLER_CORRECTION_H
#define SATNOGS_API
Definition: api.h:19
Base class of the Doppler Correction.
Definition: doppler_correction.h:39
std::shared_ptr< doppler_correction > sptr
Definition: doppler_correction.h:41
Definition: rigctl_doppler_correction.h:33
static doppler_correction::sptr make(double center_freq, rig_model_t model, vfo_t vfo=RIG_VFO_CURR)
rigctl_doppler_correction(double center_freq, rig_model_t model, vfo_t vfo=RIG_VFO_CURR)
void set_param(const std::string &name, const std::string &val)
Definition: amsat_duv_decoder.h:29