0.2.0
Loading...
Searching...
No Matches
Temperature.hpp File Reference

Temperature calculation formulas. More...

Go to the source code of this file.

Enumerations

enum class  NAV::TemperatureModel : int {
  None ,
  ConstNN ,
  ISA ,
  GPT2 ,
  GPT3 ,
  COUNT
}
 Available temperature Models. More...
 

Functions

double NAV::calcAbsoluteTemperature (double altitudeMSL, TemperatureModel temperatureModel)
 Calculates the absolute temperature.
 
bool NAV::ComboTemperatureModel (const char *label, TemperatureModel &temperatureModel)
 Shows a ComboBox to select the temperature model.
 
const char * NAV::to_string (TemperatureModel temperatureModel)
 Converts the enum to a string.
 

Detailed Description

Temperature calculation formulas.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2023-01-31

Enumeration Type Documentation

◆ TemperatureModel

enum class NAV::TemperatureModel : int
strong

Available temperature Models.

Enumerator
None 

No temperature model.

ConstNN 

Constant value at zero altitude.

ISA 

ICAO Standard Atmosphere.

GPT2 

GPT2.

GPT3 

GPT3.

COUNT 

Amount of items in the enum.

Function Documentation

◆ calcAbsoluteTemperature()

double NAV::calcAbsoluteTemperature ( double altitudeMSL,
TemperatureModel temperatureModel )

Calculates the absolute temperature.

Parameters
[in]altitudeMSLGeodetic height above MSL (mean sea level) [m]
[in]temperatureModelTemperature model to use
Returns
The absolute temperature in [K]

◆ ComboTemperatureModel()

bool NAV::ComboTemperatureModel ( const char * label,
TemperatureModel & temperatureModel )

Shows a ComboBox to select the temperature model.

Parameters
[in]labelLabel to show beside the combo box. This has to be a unique id for ImGui.
[in]temperatureModelReference to the temperature model to select

◆ to_string()

const char * NAV::to_string ( TemperatureModel temperatureModel)

Converts the enum to a string.

Parameters
[in]temperatureModelEnum value to convert into text
Returns
String representation of the enum