|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
50 #define PPRZ_ISA_SEA_LEVEL_PRESSURE 101325.0
52 #define PPRZ_ISA_SEA_LEVEL_TEMP 288.15
54 #define PPRZ_ISA_TEMP_LAPS_RATE 0.0065
56 #define PPRZ_ISA_GRAVITY 9.80665
58 #define PPRZ_ISA_GAS_CONSTANT 8.31447
60 #define PPRZ_ISA_MOLAR_MASS 0.0289644
62 #define PPRZ_ISA_AIR_GAS_CONSTANT (PPRZ_ISA_GAS_CONSTANT/PPRZ_ISA_MOLAR_MASS)
64 #define PPRZ_ISA_AIR_DENSITY 1.225
66 #define PPRZ_ISA_ABS_NULL -273.15
71 #define CelsiusOfKelvin(_t) (_t - 274.15f)
73 #define KelvinOfCelsius(_t) (_t + 274.15f)
104 if (pressure > 0. && ref_p > 0.) {
149 const float prel = pressure / ref_p;
172 return pressure / pow(Trel, expo);
static float pprz_isa_density_of_pressure(float pressure, float temp)
Get the air density (rho) from a given pressure and temperature.
#define PPRZ_ISA_AIR_GAS_CONSTANT
universal gas constant / molar mass of dry air in J*kg/K
#define PPRZ_ISA_GRAVITY
earth-surface gravitational acceleration in m/s^2
static float pprz_isa_ref_pressure_of_height_full(float pressure, float height)
Get reference pressure (QFE or QNH) from current pressure and height.
#define PPRZ_ISA_GAS_CONSTANT
universal gas constant in J/(mol*K)
static float pprz_isa_temperature_of_altitude(float alt)
Get ISA temperature from a MSL altitude.
static float pprz_isa_altitude_of_pressure(float pressure)
Get absolute altitude from pressure (using simplified equation).
static const float PPRZ_ISA_M_OF_P_CONST
static float pprz_isa_height_of_pressure_full(float pressure, float ref_p)
Get relative altitude from pressure (using full equation).
#define PPRZ_ISA_MOLAR_MASS
molar mass of dry air in kg/mol
#define PPRZ_ISA_SEA_LEVEL_TEMP
ISA sea level standard temperature in Kelvin.
static float pprz_isa_height_of_pressure(float pressure, float ref_p)
Get relative altitude from pressure (using simplified equation).
static float pprz_isa_pressure_of_altitude(float altitude)
Get pressure in Pa from absolute altitude (using simplified equation).
#define PPRZ_ISA_ABS_NULL
absolute null in celcius
#define PPRZ_ISA_TEMP_LAPS_RATE
temperature laps rate in K/m
#define PPRZ_ISA_SEA_LEVEL_PRESSURE
ISA sea level standard atmospheric pressure in Pascal.
static float pprz_isa_pressure_of_height(float height, float ref_p)
Get pressure in Pa from height (using simplified equation).