Skyward boardcore
Loading...
Searching...
No Matches
AeroUtils.h File Reference
#include <utils/Constants.h>
#include <Eigen/Core>
#include <cmath>
Include dependency graph for AeroUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Boardcore::Aeroutils::AerodynamicCoeff
 

Namespaces

namespace  Boardcore
 This file includes all the types the logdecoder script will decode.
 
namespace  Boardcore::Aeroutils
 

Functions

float Boardcore::Aeroutils::relAltitude (float pressure, float pressureRef=Constants::MSL_PRESSURE, float temperatureRef=Constants::MSL_TEMPERATURE)
 Returns the altitude given the pressure with respect to a reference pressure and temperature, using International Standard Atmosphere model.
 
float Boardcore::Aeroutils::relPressure (float altitude, float pressureRef=Constants::MSL_PRESSURE, float temperatureRef=Constants::MSL_TEMPERATURE)
 Returns the pressure given the altitude with respect to a reference pressure and temperature, using International Standard Atmosphere model.
 
float Boardcore::Aeroutils::relTemperature (float altitude, float temperatureRef=Constants::MSL_TEMPERATURE)
 Returns the temperature at the given altitude with respect to the reference temperature.
 
float Boardcore::Aeroutils::relDensity (float pressure, float pressureRef=Constants::MSL_PRESSURE, float altitudeRef=0, float temperatureRef=Constants::MSL_TEMPERATURE)
 Returns the air density given the pressure with respect to a reference pressure, altitude and temperature, using the International Standard Atmosphere model.
 
float Boardcore::Aeroutils::mslPressure (float pressureRef, float temperatureRef, float altitudeRef)
 Returns the expected pressure at mean sea level based on temperature and pressure at a reference altitude, using International Standard Atmosphere model.
 
float Boardcore::Aeroutils::mslTemperature (float temperatureRef, float altitudeRef)
 Returns the expected temperature at mean sea level based on temperature at a reference altitude, using International Standard Atmosphere model.
 
float Boardcore::Aeroutils::verticalSpeed (float p, float dpDt, float pRef, float tRef)
 
Eigen::Vector2f Boardcore::Aeroutils::geodetic2NED (const Eigen::Vector2f &target, const Eigen::Vector2f &origin)
 Converts decimal degrees of latitude and longitude into displacement in meters between two positions the with an ellipsoidal earth model.
 
float Boardcore::Aeroutils::computeRho (float d, float t0)
 Computes the rho (air density) of air at the given altitude.
 
float Boardcore::Aeroutils::computeSoundSpeed (float d, float t0)
 Computes the speed of sound at the given altitude.
 
float Boardcore::Aeroutils::computeMach (float d, float vtot, float t0)
 Computes the mach relative to the speed at a certain altitude.
 
float Boardcore::Aeroutils::computePitotMach (float pressureTotal, float pressureStatic)
 Computes the mach from total and static pressure measures from a pitot tube.
 
float Boardcore::Aeroutils::computePitotAirspeed (float pressureTotal, float pressureStatic, float d, float t0)
 Computes air speed relative to the pitot tube.
 
float Boardcore::Aeroutils::computeCd (const AerodynamicCoeff &coeff, float mach)
 Computes the CD from aerodynamic coefficients and mach.