AP_Math: moved constants from AP_Baro

This commit is contained in:
Andrew Tridgell 2017-11-03 20:10:47 +11:00
parent 7da569c395
commit 56e549e12b

View File

@ -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