Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
nps_atmosphere.c File Reference
#include "nps_atmosphere.h"
#include "nps_fdm.h"
#include "nps_ivy.h"
+ Include dependency graph for nps_atmosphere.c:

Go to the source code of this file.

Macros

#define NPS_QNH   101325.0
 
#define NPS_WIND_SPEED   0.0
 
#define NPS_WIND_DIR   0
 
#define NPS_TURBULENCE_SEVERITY   0
 
#define NPS_WORLD_ENV_UPDATE   1.0
 

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.c.

Macro Definition Documentation

◆ NPS_QNH

#define NPS_QNH   101325.0

Definition at line 32 of file nps_atmosphere.c.

◆ NPS_TURBULENCE_SEVERITY

#define NPS_TURBULENCE_SEVERITY   0

Definition at line 44 of file nps_atmosphere.c.

◆ NPS_WIND_DIR

#define NPS_WIND_DIR   0

Definition at line 40 of file nps_atmosphere.c.

◆ NPS_WIND_SPEED

#define NPS_WIND_SPEED   0.0

Definition at line 36 of file nps_atmosphere.c.

◆ NPS_WORLD_ENV_UPDATE

#define NPS_WORLD_ENV_UPDATE   1.0

Definition at line 48 of file nps_atmosphere.c.

Function Documentation

◆ nps_atmosphere_init()

void nps_atmosphere_init ( void  )

◆ nps_atmosphere_set_wind_dir()

void nps_atmosphere_set_wind_dir ( double  dir)

Definition at line 71 of file nps_atmosphere.c.

References dir, nps_atmosphere, NpsAtmosphere::wind, NpsAtmosphere::wind_dir, NpsAtmosphere::wind_speed, DoubleVect3::x, and DoubleVect3::y.

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 
)

◆ nps_atmosphere_set_wind_speed()

void nps_atmosphere_set_wind_speed ( double  speed)

Definition at line 63 of file nps_atmosphere.c.

References nps_atmosphere, NpsAtmosphere::wind, NpsAtmosphere::wind_dir, NpsAtmosphere::wind_speed, DoubleVect3::x, and DoubleVect3::y.

Referenced by nps_atmosphere_init().

+ Here is the caller graph for this function:

◆ nps_atmosphere_update()

void nps_atmosphere_update ( double  dt)

Variable Documentation

◆ nps_atmosphere