31 0.0, std::numeric_limits<double>::max(), 0.0, 0.0,
"%.1f K");
48 LOG_CRITICAL(
"GPT2/GPT3 Model needs to be called separately because of parameter lookup.");
65 switch (temperatureModel)
93 auto model = j.at(
"model").get<std::string>();
Combo representing an enumeration.
nlohmann::json json
json namespace
Utility class for logging to console and file.
#define LOG_CRITICAL(...)
Critical Event, which causes the program to work entirely and throws an exception.
Standard Atmosphere temperature model.
Temperature calculation formulas.
double _constantTemperature
Temperature for the constant temperature model [K].
TemperatureModel(Model model)
Constructor.
double calcAbsoluteTemperature(double altitudeMSL) const
Calculates the absolute temperature.
Model
Available temperature Models.
@ None
No temperature model.
@ ISA
ICAO Standard Atmosphere.
@ COUNT
Amount of items in the enum.
Model _model
Selected model.
static float windowFontRatio()
Ratio to multiply for GUI window elements.
bool InputDoubleL(const char *label, double *v, double v_min, double v_max, double step, double step_fast, const char *format, ImGuiInputTextFlags flags)
Shows a value limited InputText GUI element for 'double'.
void to_json(json &j, const Node &node)
Converts the provided node into a json object.
const char * to_string(gui::widgets::PositionWithFrame::ReferenceFrame refFrame)
Converts the enum to a string.
void from_json(const json &j, Node &node)
Converts the provided json object into a node object.
constexpr double calcAbsoluteTemperatureStAtm(double altitudeMSL)
Calculates the standard atmosphere absolute temperature.
bool ComboTemperatureModel(const char *label, TemperatureModel &temperatureModel)
Shows a ComboBox to select the temperature model.