Skip to content
Snippets Groups Projects
Commit 4aaafec0 authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

[Constants] Added MSL_PRESSURE and MSL_TEMPERATURE

parent 60d2afd0
Branches
Tags
No related merge requests found
......@@ -34,10 +34,13 @@ static constexpr const float RADIANS_TO_DEGREES = 180.0f / PI;
static constexpr const float g = 9.80665f; // [m^s^2]
constexpr float a = 0.0065f; // Troposphere temperature gradient [deg/m]
constexpr float R = 287.05f; // Air gas constant [J/Kg/K]
constexpr float n = g / (R * a);
constexpr float nInv = (R * a) / g;
static constexpr float a = 0.0065f; // Troposphere temperature gradient [deg/m]
static constexpr float R = 287.05f; // Air gas constant [J/Kg/K]
static constexpr float n = g / (R * a);
static constexpr float nInv = (R * a) / g;
static constexpr const float MSL_PRESSURE = 101325.0f; // [Pa]
static constexpr const float MSL_TEMPERATURE = 288.15f; // [Kelvin]
} // namespace Constants
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment