SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
const_disp.h
1#pragma once
2
3#include "common/dsp/complex.h"
4#include "common/widgets/constellation.h"
5#include "dsp/block.h"
6
7namespace satdump
8{
9 namespace ndsp
10 {
11 class ConstellationDisplayBlock : public Block
12 {
13 public:
14 widgets::ConstellationViewer constel;
15
16 public:
17 ConstellationDisplayBlock();
18 ~ConstellationDisplayBlock();
19
20 bool work();
21
22 nlohmann::json get_cfg(std::string key)
23 {
24 // if (key == "max_gain")
25 // return p_max_gain;
26 // else
27 throw satdump_exception(key);
28 }
29
30 cfg_res_t set_cfg(std::string key, nlohmann::json v)
31 {
32 // if (key == "max_gain")
33 // p_max_gain = v;
34 // else
35 throw satdump_exception(key);
36 return RES_OK;
37 }
38 };
39 } // namespace ndsp
40} // namespace satdump
cfg_res_t
set_cfg status.
Definition block.h:227
Block(std::string id, std::vector< BlockIO > in={}, std::vector< BlockIO > out={})
Generic constructor, to be overloaded.
Definition block.h:206
bool work()
The actual looping work function meant to handle all the DSP (well, in most blocks)
Definition const_disp.cpp:11
nlohmann::json get_cfg(std::string key)
Get parameters of the block as JSON.
Definition const_disp.h:22
cfg_res_t set_cfg(std::string key, nlohmann::json v)
Set parameters of the block from JSON, including potentially IO configurations for blocks that may ha...
Definition const_disp.h:30