Skip to content

Commit

Permalink
atmosphere: added function return standard temperature at altitdue
Browse files Browse the repository at this point in the history
Signed-off-by: RomanBapst <[email protected]>
  • Loading branch information
RomanBapst committed Oct 23, 2023
1 parent deaabae commit d01dc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/atmosphere/atmosphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace atmosphere

static constexpr float kTempRefKelvin = 15.f - CONSTANTS_ABSOLUTE_NULL_CELSIUS; // temperature at base height in Kelvin
static constexpr float kTempGradient = -6.5f / 1000.f; // temperature gradient in degrees per meter
static constexpr float kPressRefSeaLevelPa = 101325.f; // pressure at sea level in Pa
static constexpr float kPressRefSeaLevelPa = 101325.f; // pressure at sea level in kPa

float getDensityFromPressureAndTemp(const float pressure_pa, const float temperature_celsius)
{
Expand Down

0 comments on commit d01dc17

Please sign in to comment.