Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
nps_atmosphere.h File Reference

Atmosphere model (pressure, wind) for NPS. More...

Include dependency graph for nps_atmosphere.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  NpsAtmosphere

Functions

void nps_atmosphere_init (void)
void nps_atmosphere_set_wind_speed (double speed)
void nps_atmosphere_set_wind_dir (double dir)
void nps_atmosphere_set_wind_ned (double wind_north, double wind_east, double wind_down)
void nps_atmosphere_update (double dt)

Variables

struct NpsAtmosphere nps_atmosphere

Detailed Description

Atmosphere model (pressure, wind) for NPS.

Definition in file nps_atmosphere.h.


Data Structure Documentation

◆ NpsAtmosphere

struct NpsAtmosphere

Definition at line 32 of file nps_atmosphere.h.

Collaboration diagram for NpsAtmosphere:
Data Fields
double last_world_env_req last world env request time
double qnh barometric pressure at sea level in Pascal
int turbulence_severity turbulence severity from 0-7
struct DoubleVect3 wind wind speed in NED in m/s
double wind_dir horitzontal wind direction in radians north=0, increasing CCW
double wind_speed horizontal wind magnitude in m/s

Function Documentation

◆ nps_atmosphere_init()

void nps_atmosphere_init ( void )
extern

Definition at line 53 of file nps_atmosphere.c.

References FLOAT_VECT3_ZERO, nps_atmosphere, nps_atmosphere_set_wind_dir(), nps_atmosphere_set_wind_speed(), NPS_QNH, NPS_TURBULENCE_SEVERITY, NPS_WIND_DIR, and NPS_WIND_SPEED.

Referenced by nps_main_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nps_atmosphere_set_wind_dir()

void nps_atmosphere_set_wind_dir ( double dir)
extern

Definition at line 71 of file nps_atmosphere.c.

References dir, and nps_atmosphere.

Referenced by nps_atmosphere_init().

Here is the caller graph for this function:

◆ nps_atmosphere_set_wind_ned()

void nps_atmosphere_set_wind_ned ( double wind_north,
double wind_east,
double wind_down )
extern

Definition at line 83 of file nps_atmosphere.c.

References dir, FLOAT_VECT2_NORM, and nps_atmosphere.

Referenced by nps_flightgear_receive(), and on_WORLD_ENV().

Here is the caller graph for this function:

◆ nps_atmosphere_set_wind_speed()

void nps_atmosphere_set_wind_speed ( double speed)
extern

Definition at line 63 of file nps_atmosphere.c.

References nps_atmosphere.

Referenced by nps_atmosphere_init().

Here is the caller graph for this function:

◆ nps_atmosphere_update()

void nps_atmosphere_update ( double dt)
extern

Definition at line 98 of file nps_atmosphere.c.

References nps_atmosphere, nps_fdm_set_turbulence(), nps_fdm_set_wind_ned(), nps_ivy_send_world_env, and NPS_WORLD_ENV_UPDATE.

Referenced by nps_main_run_sim_step().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ nps_atmosphere