![]() |
0.4.1
|
Signal to Noise Ratio Mask. More...
Public Member Functions | |
bool | checkSNRMask (Frequency freq, double elevation, double SNR) const |
Checks wether the SNR values passes the SNR mask. | |
void | disable () |
Disables the SNR mask by setting all values to 0. | |
bool | isInactive () const |
Checks wether all SNR values are 0. | |
bool | ShowGuiWidgets (const char *label=nullptr) |
Shows a button to select the SNR Mask. | |
SNRMask () | |
Default Constructor. | |
Private Attributes | |
std::pair< std::array< double, elevations.size()>, bool > | allOverride |
Values when changed override all others. | |
std::array< std::pair< Frequency, std::pair< std::array< double, elevations.size()>, bool > >, Frequency::GetAll().size()> | mask |
Masks for all frequencies and SNR [dbHz] values + lock together boolean. | |
Static Private Attributes | |
static constexpr std::array< double, 10 > | elevations |
Elevations [rad]. Checks to smaller or equal than the value. | |
Friends | |
void | from_json (const json &j, SNRMask &obj) |
Converts the provided json object into a node object. | |
void | to_json (json &j, const SNRMask &obj) |
Converts the provided object into json. | |
Signal to Noise Ratio Mask.
Definition at line 25 of file SNRMask.hpp.
NAV::SNRMask::SNRMask | ( | ) |
Default Constructor.
Definition at line 25 of file SNRMask.cpp.
|
nodiscard |
Checks wether the SNR values passes the SNR mask.
[in] | freq | Frequency of the signal |
[in] | elevation | Elevation in [rad] of the satellite transmitting the signal |
[in] | SNR | Signal to Noise Ratio in [dbHz] |
Definition at line 181 of file SNRMask.cpp.
|
inline |
Disables the SNR mask by setting all values to 0.
Definition at line 46 of file SNRMask.hpp.
|
nodiscard |
Checks wether all SNR values are 0.
Definition at line 172 of file SNRMask.cpp.
bool NAV::SNRMask::ShowGuiWidgets | ( | const char * | label = nullptr | ) |
Shows a button to select the SNR Mask.
[in] | label | Text to display on the button. If empty, just 'SNR Mask' will be written |
Definition at line 35 of file SNRMask.cpp.
Converts the provided json object into a node object.
[in] | j | Json object with the needed values |
[out] | obj | Object to fill from the json |
Definition at line 208 of file SNRMask.cpp.
Converts the provided object into json.
[out] | j | Json object which gets filled with the info |
[in] | obj | Object to convert into json |
Definition at line 200 of file SNRMask.cpp.
|
private |
Values when changed override all others.
Definition at line 73 of file SNRMask.hpp.
|
staticconstexprprivate |
Elevations [rad]. Checks to smaller or equal than the value.
Definition at line 59 of file SNRMask.hpp.
|
private |
Masks for all frequencies and SNR [dbHz] values + lock together boolean.
Definition at line 76 of file SNRMask.hpp.