From 56e549e12b9b6fd24731a1bbbb4db3b1b5136dc9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 3 Nov 2017 20:10:47 +1100 Subject: [PATCH] AP_Math: moved constants from AP_Baro --- libraries/AP_Math/definitions.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libraries/AP_Math/definitions.h b/libraries/AP_Math/definitions.h index 3c89366be5..295df6686b 100644 --- a/libraries/AP_Math/definitions.h +++ b/libraries/AP_Math/definitions.h @@ -64,6 +64,15 @@ static const double WGS84_B = (WGS84_A * (1 - WGS84_F)); // Eccentricity of the Earth static const double WGS84_E = (sqrt(2 * WGS84_F - WGS84_F * WGS84_F)); +// air density at 15C at sea level in kg/m^3 +#define AIR_DENSITY_SEA_LEVEL 1.225f + +#define C_TO_KELVIN 273.15f + +// Gas Constant is from Aerodynamics for Engineering Students, Third Edition, E.L.Houghton and N.B.Carruthers +#define ISA_GAS_CONSTANT 287.26f +#define ISA_LAPSE_RATE 0.0065f + /* use AP_ prefix to prevent conflict with OS headers, such as NuttX clock.h