![]() |
0.4.1
|
Temperature Model parameters. More...
Public Types | |
enum | Model : uint8_t { None , Const , ISA , GPT2 , GPT3 , COUNT } |
Available temperature Models. More... | |
Public Member Functions | |
double | calcAbsoluteTemperature (double altitudeMSL) const |
Calculates the absolute temperature. | |
TemperatureModel (Model model) | |
Constructor. | |
Private Attributes | |
double | _constantTemperature |
Temperature for the constant temperature model [K]. | |
Model | _model |
Selected model. | |
Friends | |
bool | ComboTemperatureModel (const char *label, TemperatureModel &temperatureModel) |
Shows a ComboBox to select the temperature model. | |
bool | ComboTemperatureModel (const char *label, TemperatureModel &temperatureModel) |
Shows a ComboBox to select the temperature model. | |
void | from_json (const json &j, TemperatureModel &obj) |
Converts the provided json object into a node object. | |
constexpr bool | operator== (const TemperatureModel &lhs, const TemperatureModel &rhs) |
Equal compares Pin::Kind values. | |
constexpr bool | operator== (const TemperatureModel &lhs, const TemperatureModel::Model &rhs) |
Equal compares Pin::Kind values. | |
constexpr bool | operator== (const TemperatureModel::Model &lhs, const TemperatureModel &rhs) |
Equal compares Pin::Kind values. | |
void | to_json (json &j, const TemperatureModel &obj) |
Converts the provided object into json. | |
const char * | to_string (const TemperatureModel &temperatureModel) |
Converts the enum to a string. | |
Temperature Model parameters.
Definition at line 25 of file Temperature.hpp.
enum NAV::TemperatureModel::Model : uint8_t |
Available temperature Models.
Enumerator | |
---|---|
None | No temperature model. |
Const | Constant value. |
ISA | ICAO Standard Atmosphere. |
GPT2 | GPT2. |
GPT3 | GPT3. |
COUNT | Amount of items in the enum. |
Definition at line 29 of file Temperature.hpp.
|
inline |
|
nodiscard |
Calculates the absolute temperature.
[in] | altitudeMSL | Geodetic height above MSL (mean sea level) [m] |
Definition at line 38 of file Temperature.cpp.
|
friend |
Shows a ComboBox to select the temperature model.
[in] | label | Label to show beside the combo box. This has to be a unique id for ImGui. |
[in] | temperatureModel | Reference to the temperature model to select |
Definition at line 22 of file Temperature.cpp.
|
friend |
Shows a ComboBox to select the temperature model.
[in] | label | Label to show beside the combo box. This has to be a unique id for ImGui. |
[in] | temperatureModel | Reference to the temperature model to select |
Definition at line 22 of file Temperature.cpp.
|
friend |
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 91 of file Temperature.cpp.
|
friend |
Equal compares Pin::Kind values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
Definition at line 73 of file Temperature.hpp.
|
friend |
Equal compares Pin::Kind values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
Definition at line 87 of file Temperature.hpp.
|
friend |
Equal compares Pin::Kind values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
Definition at line 92 of file Temperature.hpp.
|
friend |
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 83 of file Temperature.cpp.
|
friend |
Converts the enum to a string.
[in] | temperatureModel | Enum value to convert into text |
Definition at line 58 of file Temperature.cpp.
|
private |
Temperature for the constant temperature model [K].
Definition at line 58 of file Temperature.hpp.
|
private |
Selected model.
Definition at line 55 of file Temperature.hpp.