float tas_from_dynamic_pressure(float q)
Calculate true airspeed from dynamic pressure.
float tas
True Air Speed (TAS) in m/s, -1 if unknown.
float qnh
Barometric pressure adjusted to sea level in hPa, -1 if unknown.
bool calc_tas_factor
if TRUE, calculate tas_factor when getting a temp measurement
bool calc_qnh_once
flag to calculate QNH with next pressure measurement
bool amsl_baro_valid
TRUE if amsl_baro is currently valid.
float airspeed
Equivalent Air Speed (equals to Calibrated Air Speed at low speed/altitude) (in m/s, -1 if unknown.
float air_data_get_amsl(void)
Return AMSL (altitude AboveSeaLevel).
float get_tas_factor(float p, float t)
Calculate true airspeed (TAS) factor.
float eas_from_dynamic_pressure(float q)
Calculate equivalent airspeed from dynamic pressure.
bool calc_airspeed
if TRUE, calculate airspeed from differential pressure
float wind_dir
wind direction (rad, 0 north, >0 clockwise)
void air_data_periodic(void)
Check health.
void air_data_init(void)
AirData initialization.
struct AirData air_data
global AirData state
float tas_from_eas(float eas)
Calculate true airspeed from equivalent airspeed.
float pressure
Static atmospheric pressure (Pa), -1 if unknown.
bool calc_amsl_baro
if TRUE, calculate amsl_baro
float tas_factor
factor to convert equivalent airspeed (EAS) to true airspeed (TAS)
float sideslip
sideslip angle (rad)
float wind_speed
wind speed (m/s)
float aoa
angle of attack (rad)
float differential
Differential pressure (total - static pressure) (Pa)
float amsl_baro
altitude above sea level in m from pressure and QNH
float temperature
temperature in degrees Celcius, -1000 if unknown