32#define NPS_QNH 101325.0
36#define NPS_WIND_SPEED 0.0
43#ifndef NPS_TURBULENCE_SEVERITY
44#define NPS_TURBULENCE_SEVERITY 0
47#ifndef NPS_WORLD_ENV_UPDATE
48#define NPS_WORLD_ENV_UPDATE 1.0
74 while (
dir < 0.0) {
dir += 2 * M_PI; }
75 while (
dir >= 2 * M_PI) {
dir -= 2 * M_PI; }
91 double dir = atan2(-wind_east, -wind_north);
93 while (
dir < 0.0) {
dir += 2 * M_PI; }
94 while (
dir >= 2 * M_PI) {
dir -= 2 * M_PI; }
100 static double req_time = 0.;
#define FLOAT_VECT3_ZERO(_v)
#define FLOAT_VECT2_NORM(_v)
void nps_atmosphere_set_wind_ned(double wind_north, double wind_east, double wind_down)
void nps_atmosphere_init(void)
void nps_atmosphere_update(double dt)
struct NpsAtmosphere nps_atmosphere
#define NPS_WORLD_ENV_UPDATE
#define NPS_TURBULENCE_SEVERITY
void nps_atmosphere_set_wind_speed(double speed)
void nps_atmosphere_set_wind_dir(double dir)
Atmosphere model (pressure, wind) for NPS.
void nps_fdm_set_wind_ned(double wind_north, double wind_east, double wind_down)
void nps_fdm_set_turbulence(double wind_speed, int turbulence_severity)
bool nps_ivy_send_world_env