Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
atmosphere.h File Reference

computes properties of earth's atmosphere More...

#include "embedded_math.h"
#include <air_density_observer.h>
#include <pt2.h>

Go to the source code of this file.

Classes

class  atmosphere_t
 Maintenance of atmosphere data like pressure, density etc. More...
 

Macros

#define RECIP_STD_DENSITY_TIMES_2   1.632f
 
#define GAS_CONST_DRY_AIR   287.058f
 
#define GAS_CONST_WATER_VAPOR   461.523f
 
#define ONE_MINUS_RATIO_GAS_CONSTANTS   0.378f
 
#define CELSIUS_TO_KELVIN_OFFSET   273.15f
 

Detailed Description

computes properties of earth's atmosphere

Author
Dr. Klaus Schaefer

<Larus Flight Sensor Firmware>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file atmosphere.h.

Macro Definition Documentation

◆ CELSIUS_TO_KELVIN_OFFSET

#define CELSIUS_TO_KELVIN_OFFSET   273.15f

The offest for the conversion from degree celsius to kelvin

Definition at line 42 of file atmosphere.h.

◆ GAS_CONST_DRY_AIR

#define GAS_CONST_DRY_AIR   287.058f

The gas constant of dry air in J/kg/K

Definition at line 36 of file atmosphere.h.

◆ GAS_CONST_WATER_VAPOR

#define GAS_CONST_WATER_VAPOR   461.523f

The gas constant of water vapor in J/kg/K

Definition at line 38 of file atmosphere.h.

◆ ONE_MINUS_RATIO_GAS_CONSTANTS

#define ONE_MINUS_RATIO_GAS_CONSTANTS   0.378f

The ratio of the gas constant of dry air to the gas contant of water vapor

Definition at line 40 of file atmosphere.h.

◆ RECIP_STD_DENSITY_TIMES_2

#define RECIP_STD_DENSITY_TIMES_2   1.632f

Definition at line 33 of file atmosphere.h.