35 #include "pprzlink/pprzlink_device.h"
36 #include "pprzlink/pprzlink_transport.h"
float eas_from_dynamic_pressure(float q)
Calculate equivalent airspeed from dynamic pressure.
void air_data_periodic(void)
Check health.
bool calc_amsl_baro
if TRUE, calculate amsl_baro
float sideslip
sideslip angle (rad)
float wind_dir
wind direction (rad, 0 north, >0 clockwise)
struct AirData air_data
global AirData state
float air_data_get_amsl(void)
Return AMSL (altitude AboveSeaLevel).
bool calc_tas_factor
if TRUE, calculate tas_factor when getting a temp measurement
float tas_factor
factor to convert equivalent airspeed (EAS) to true airspeed (TAS)
float eas_from_tas(float tas)
Calculate equivalent airspeed from true airspeed.
float temperature
temperature in degrees Celcius, -1000 if unknown
float aoa
angle of attack (rad)
float tas_from_dynamic_pressure(float q)
Calculate true airspeed from dynamic pressure.
float wind_speed
wind speed (m/s)
bool calc_airspeed
if TRUE, calculate airspeed from differential pressure
bool calc_qnh_once
flag to calculate QNH with next pressure measurement
float airspeed
Equivalent Air Speed (equals to Calibrated Air Speed at low speed/altitude) (in m/s,...
float differential
Differential pressure (total - static pressure) (Pa)
void air_data_parse_WIND_INFO(struct link_device *dev, struct transport_tx *trans, uint8_t *buf)
Parse datalink wind info message.
float pressure
Static atmospheric pressure (Pa), -1 if unknown.
float amsl_baro
altitude above sea level in m from pressure and QNH
float tas
True Air Speed (TAS) in m/s, -1 if unknown.
bool amsl_baro_valid
TRUE if amsl_baro is currently valid.
float qnh
Barometric pressure adjusted to sea level in hPa, -1 if unknown.
void air_data_init(void)
AirData initialization.
float get_tas_factor(float p, float t)
Calculate true airspeed (TAS) factor.
float tas_from_eas(float eas)
Calculate true airspeed from equivalent airspeed.
static const struct usb_device_descriptor dev
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.