XPPlanes
X-Plane plugin to display additional planes based on network data
Macros | Variables
Constants.h File Reference

XPPlanes constant definitions. More...

Go to the source code of this file.

Macros

#define XPPLANES   "XPPlanes"
 

Variables

constexpr double HPA_STANDARD = 1013.25
 
constexpr double PA_per_M = 11.3
 The pressure drops approximately by 11.3 Pa per meter in first 1000 meters above sea level. More...
 
constexpr double FT_per_HPA = (100/PA_per_M)/XPMP2::M_per_FT
 ft altitude diff per hPa change More...
 
constexpr auto MIN_TS_DIFF = std::chrono::milliseconds(100)
 Minimum time expected between two position to allow for meaningful interpolation. More...
 
constexpr float MAX_F = 1.25f
 Maximum f factor for non-location values during interpolation, like attitude, config. More...
 
constexpr float TOUCH_DOWN_TIME = 0.5f
 How long does the moment of touch down last? [seconds]. More...
 

Detailed Description

XPPlanes constant definitions.

Author
Birger Hoppe

Macro Definition Documentation

◆ XPPLANES

#define XPPLANES   "XPPlanes"

Variable Documentation

◆ FT_per_HPA

constexpr double FT_per_HPA = (100/PA_per_M)/XPMP2::M_per_FT
constexpr

ft altitude diff per hPa change

◆ HPA_STANDARD

constexpr double HPA_STANDARD = 1013.25
constexpr

standard air pressure

◆ MAX_F

constexpr float MAX_F = 1.25f
constexpr

Maximum f factor for non-location values during interpolation, like attitude, config.

◆ MIN_TS_DIFF

constexpr auto MIN_TS_DIFF = std::chrono::milliseconds(100)
constexpr

Minimum time expected between two position to allow for meaningful interpolation.

◆ PA_per_M

constexpr double PA_per_M = 11.3
constexpr

The pressure drops approximately by 11.3 Pa per meter in first 1000 meters above sea level.

See also
https://en.wikipedia.org/wiki/Barometric_formula

◆ TOUCH_DOWN_TIME

constexpr float TOUCH_DOWN_TIME = 0.5f
constexpr

How long does the moment of touch down last? [seconds].