MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
Atmosphere Class Reference

#include <Atmosphere.h>

Collaboration diagram for Atmosphere:
Collaboration graph

Public Member Functions

 Atmosphere (float pressure)
 Construct a new Atmosphere object.
 
float get_altitude ()
 
Eigen::Vector4f get_layer_constants (float p)
 
float to_geopotential (float alt)
 

Detailed Description

A class that calculates the altitude from the pressure values, using the ICAO 1993 standard. Altitude Calculation is different for when the tempreature gradient, beta is zero versus when not. When beta != 0:

\begin{eqnarray*} H = H_b + \frac{T_b}{\beta} ((\frac{P_b}{P})^{\frac{\beta R}{g_0}} - 1) \end{eqnarray*}

When beta = 0:

\begin{eqnarray*} H = H_b + \frac{RT}{g_0} ln({\frac{P_b}{P}}) \end{eqnarray*}

Constructor & Destructor Documentation

◆ Atmosphere()

Atmosphere::Atmosphere ( float  pressure)
explicit

Construct a new Atmosphere object.

Parameters
pressureThe current air pressure [Pa]

Member Function Documentation

◆ get_altitude()

float Atmosphere::get_altitude ( )

Get the altitude at this point in the Atmosphere

Returns
The altitude [m] above Mean Sea Level

◆ get_layer_constants()

Eigen::Vector4f Atmosphere::get_layer_constants ( float  p)

Get the layer constants for the current pressure

Parameters
pThe current pressure [Pa]
Returns
A vector of \( (H_b, T_b, \beta, P_b) \) which represents the layer constants

The documentation for this class was generated from the following files: