dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Math Various mathematical routines

Miscellaneous math support. More...

Data Structures

struct  AirParameters
 

Functions

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 More...
 
float air_pressure_from_altitude (float altitude, struct AirParameters *air)
 air_pressure_from_altitude Get air pressure from altitude and atmospheric conditions. More...
 
float cas2tas (float CAS, float altitude, struct AirParameters *air)
 cas2tas calculate TAS from CAS and altitude. http://en.wikipedia.org/wiki/Airspeed More...
 
float tas2cas (float TAS, float altitude, struct AirParameters *air)
 tas2cas calculate CAS from TAS and altitude. http://en.wikipedia.org/wiki/Airspeed More...
 
struct AirParameters initialize_air_structure ()
 initialize_air_structure Initializes the structure with standard-temperature-pressure values More...
 

Variables

float AirParameters::air_density_at_surface
 
float AirParameters::air_temperature_at_surface
 
float AirParameters::sea_level_press
 
float AirParameters::temperature_lapse_rate
 
float AirParameters::univ_gas_constant
 
float AirParameters::dry_air_constant
 
float AirParameters::relative_humidity
 
float AirParameters::M
 

Detailed Description

Miscellaneous math support.

Function Documentation

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

Parameters
alt
air
gravity
Returns

Definition at line 38 of file atmospheric_math.c.

float air_pressure_from_altitude ( float  altitude,
struct AirParameters air 
)

air_pressure_from_altitude Get air pressure from altitude and atmospheric conditions.

Parameters
altitudealtitude
airatmospheric conditions
gravity
Returns

Definition at line 53 of file atmospheric_math.c.

float cas2tas ( float  CAS,
float  altitude,
struct AirParameters air 
)

cas2tas calculate TAS from CAS and altitude. http://en.wikipedia.org/wiki/Airspeed

Parameters
CASCalibrated airspeed
altitudealtitude
airatmospheric conditions
gravity
Returns
TAS True airspeed

Definition at line 68 of file atmospheric_math.c.

struct AirParameters initialize_air_structure ( )

initialize_air_structure Initializes the structure with standard-temperature-pressure values

Returns

Definition at line 97 of file atmospheric_math.c.

float tas2cas ( float  TAS,
float  altitude,
struct AirParameters air 
)

tas2cas calculate CAS from TAS and altitude. http://en.wikipedia.org/wiki/Airspeed

Parameters
TASTrue airspeed
altitudealtitude
airatmospheric conditions
gravity
Returns
CAS Calibrated airspeed

Definition at line 84 of file atmospheric_math.c.

Variable Documentation

float AirParameters::air_density_at_surface

Definition at line 31 of file atmospheric_math.h.

float AirParameters::air_temperature_at_surface

Definition at line 32 of file atmospheric_math.h.

float AirParameters::dry_air_constant

Definition at line 36 of file atmospheric_math.h.

float AirParameters::M

Definition at line 38 of file atmospheric_math.h.

float AirParameters::relative_humidity

Definition at line 37 of file atmospheric_math.h.

float AirParameters::sea_level_press

Definition at line 33 of file atmospheric_math.h.

float AirParameters::temperature_lapse_rate

Definition at line 34 of file atmospheric_math.h.

float AirParameters::univ_gas_constant

Definition at line 35 of file atmospheric_math.h.