22 switch (pressureModel)
47 switch (pressureModel)
55 LOG_CRITICAL(
"GPT2/GPT3 Model needs to be called separately because of parameter lookup.");
Combo representing an enumeration.
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 pressure model.
Pressure calculation formulas.
PressureModel
Available pressure Models.
@ ConstNN
Constant value at zero altitude.
@ COUNT
Amount of items in the enum.
@ ISA
ICAO Standard Atmosphere.
const char * to_string(gui::widgets::PositionWithFrame::ReferenceFrame refFrame)
Converts the enum to a string.
double calcTotalPressure(double altitudeMSL, PressureModel pressureModel)
Calculates the total pressure.
constexpr double calcTotalPressureStAtm(double altitudeMSL)
Calculates the standard atmosphere total pressure.
bool ComboPressureModel(const char *label, PressureModel &pressureModel)
Shows a ComboBox to select the pressure model.