0.2.0
Loading...
Searching...
No Matches
StandardAtmosphere.hpp
Go to the documentation of this file.
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
13
14#pragma once
15
16#include <gcem.hpp>
17
18namespace NAV
19{
20
25[[nodiscard]] constexpr double calcTotalPressureStAtm(double altitudeMSL)
26{
27 return 1013.25 * gcem::pow(1 - 2.2557e-5 * altitudeMSL, 5.2568);
28}
29
30} // namespace NAV
constexpr double calcTotalPressureStAtm(double altitudeMSL)
Calculates the standard atmosphere total pressure.
Definition StandardAtmosphere.hpp:25