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

Pressure calculation formulas. More...

Go to the source code of this file.

Enumerations

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

Functions

double NAV::calcTotalPressure (double altitudeMSL, PressureModel pressureModel)
 Calculates the total pressure.
 
bool NAV::ComboPressureModel (const char *label, PressureModel &pressureModel)
 Shows a ComboBox to select the pressure model.
 
const char * NAV::to_string (PressureModel pressureModel)
 Converts the enum to a string.
 

Detailed Description

Pressure 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

◆ PressureModel

enum class NAV::PressureModel : int
strong

Available pressure Models.

Enumerator
None 

No pressure model.

ConstNN 

Constant value at zero altitude.

ISA 

ICAO Standard Atmosphere.

GPT2 

GPT2.

GPT3 

GPT3.

COUNT 

Amount of items in the enum.

Function Documentation

◆ calcTotalPressure()

double NAV::calcTotalPressure ( double altitudeMSL,
PressureModel pressureModel )

Calculates the total pressure.

Parameters
[in]altitudeMSLGeodetic height above MSL (mean sea level) [m]
[in]pressureModelPressure model to use
Returns
The total pressure in [hPa] = [mbar]

◆ ComboPressureModel()

bool NAV::ComboPressureModel ( const char * label,
PressureModel & pressureModel )

Shows a ComboBox to select the pressure model.

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

◆ to_string()

const char * NAV::to_string ( PressureModel pressureModel)

Converts the enum to a string.

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