Line |
Branch |
Exec |
Source |
1 |
|
|
// This file is part of INSTINCT, the INS Toolkit for Integrated |
2 |
|
|
// Navigation Concepts and Training by the Institute of Navigation of |
3 |
|
|
// the University of Stuttgart, Germany. |
4 |
|
|
// |
5 |
|
|
// This Source Code Form is subject to the terms of the Mozilla Public |
6 |
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this |
7 |
|
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/. |
8 |
|
|
|
9 |
|
|
/// @file StandardAtmosphere.hpp |
10 |
|
|
/// @brief Standard Atmosphere temperature model |
11 |
|
|
/// @author T. Topp (topp@ins.uni-stuttgart.de) |
12 |
|
|
/// @date 2023-01-31 |
13 |
|
|
|
14 |
|
|
#pragma once |
15 |
|
|
|
16 |
|
|
namespace NAV |
17 |
|
|
{ |
18 |
|
|
|
19 |
|
|
/// @brief Calculates the standard atmosphere absolute temperature |
20 |
|
|
/// @param[in] altitudeMSL Geodetic height above MSL (mean sea level) |
21 |
|
|
/// @return The absolute temperature in [K] |
22 |
|
|
/// @note See \cite RTKLIB RTKLIB ch. E.5, eq. E.5.2, p. 149 |
23 |
|
15557 |
[[nodiscard]] constexpr double calcAbsoluteTemperatureStAtm(double altitudeMSL) |
24 |
|
|
{ |
25 |
|
15557 |
return 15.0 - 6.5e-3 * altitudeMSL + 273.15; |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
} // namespace NAV |
29 |
|
|
|