50 for (
auto& snr : m.second.first)
nlohmann::json json
json namespace
Frequency definition for different satellite systems.
Frequency definition for different satellite systems.
static constexpr std::array< Frequency, 27 > GetAll()
Returns a list with all possible frequencies.
Signal to Noise Ratio Mask.
friend void from_json(const json &j, SNRMask &obj)
Converts the provided json object into a node object.
bool checkSNRMask(Frequency freq, double elevation, double SNR) const
Checks wether the SNR values passes the SNR mask.
friend void to_json(json &j, const SNRMask &obj)
Converts the provided object into json.
bool ShowGuiWidgets(const char *label=nullptr)
Shows a button to select the SNR Mask.
std::pair< std::array< double, elevations.size()>, bool > allOverride
Values when changed override all others.
SNRMask()
Default Constructor.
static constexpr std::array< double, 10 > elevations
Elevations [rad]. Checks to smaller or equal than the value.
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.
void disable()
Disables the SNR mask by setting all values to 0.
bool isInactive() const
Checks wether all SNR values are 0.
void to_json(json &j, const Node &node)
Converts the provided node into a json object.
void from_json(const json &j, Node &node)
Converts the provided json object into a node object.
constexpr auto deg2rad(const T °)
Convert Degree to Radians.