MRAS
Multi Rocket Avionics System
|
#include <Atmosphere.h>
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) |
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*}
|
explicit |
Construct a new Atmosphere object.
pressure | The current air pressure [Pa] |
float Atmosphere::get_altitude | ( | ) |
Get the altitude at this point in the Atmosphere
Eigen::Vector4f Atmosphere::get_layer_constants | ( | float | p | ) |
Get the layer constants for the current pressure
p | The current pressure [Pa] |