dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
atmospheric_math.h
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  */
25 
26 #ifndef ATMOSPHERIC_MATH_H
27 #define ATMOSPHERIC_MATH_H
28 
30 {
37  float relative_humidity; //[%]
38  float M; //Molar mass
39 };
40 
41 float air_density_from_altitude(float altitude, struct AirParameters *air);
42 float air_pressure_from_altitude(float altitude, struct AirParameters *air);
43 float cas2tas(float CAS, float altitude, struct AirParameters *air);
44 float tas2cas(float TAS, float altitude, struct AirParameters *air);
45 
47 
48 #endif /* ATMOSPHERIC_MATH_H */
float cas2tas(float CAS, float altitude, struct AirParameters *air)
cas2tas calculate TAS from CAS and altitude. http://en.wikipedia.org/wiki/Airspeed ...
struct AirParameters initialize_air_structure()
initialize_air_structure Initializes the structure with standard-temperature-pressure values ...
float air_density_at_surface
float air_temperature_at_surface
float air_pressure_from_altitude(float altitude, struct AirParameters *air)
air_pressure_from_altitude Get air pressure from altitude and atmospheric conditions.
uint16_t altitude
Definition: msp_messages.h:100
float temperature_lapse_rate
float tas2cas(float TAS, float altitude, struct AirParameters *air)
tas2cas calculate CAS from TAS and altitude. http://en.wikipedia.org/wiki/Airspeed ...
float air_density_from_altitude(float altitude, struct AirParameters *air)
air_density_from_altitude calculate air density from altitude. http://en.wikipedia.org/wiki/Density_of_air