Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
nps_sensor_airspeed.c File Reference

Simulated airspeed for NPS simulator. More...

#include "nps_sensor_airspeed.h"
#include "generated/airframe.h"
#include "std.h"
#include "nps_fdm.h"
#include "nps_random.h"
#include "nps_sensors.h"
+ Include dependency graph for nps_sensor_airspeed.c:

Go to the source code of this file.

Macros

#define NPS_AIRSPEED_DT   0.01
 10Hz default More...
 
#define NPS_AIRSPEED_NOISE_STD_DEV   0.1
 standard deviation in meters/second (default 0.1 m/s) More...
 
#define NPS_AIRSPEED_OFFSET   0
 

Functions

void nps_sensor_airspeed_init (struct NpsSensorAirspeed *airspeed, double time)
 
void nps_sensor_airspeed_run_step (struct NpsSensorAirspeed *airspeed, double time)
 

Detailed Description

Simulated airspeed for NPS simulator.

Definition in file nps_sensor_airspeed.c.

Macro Definition Documentation

◆ NPS_AIRSPEED_DT

#define NPS_AIRSPEED_DT   0.01

10Hz default

Definition at line 40 of file nps_sensor_airspeed.c.

◆ NPS_AIRSPEED_NOISE_STD_DEV

#define NPS_AIRSPEED_NOISE_STD_DEV   0.1

standard deviation in meters/second (default 0.1 m/s)

Definition at line 45 of file nps_sensor_airspeed.c.

◆ NPS_AIRSPEED_OFFSET

#define NPS_AIRSPEED_OFFSET   0

Definition at line 49 of file nps_sensor_airspeed.c.

Function Documentation

◆ nps_sensor_airspeed_init()

void nps_sensor_airspeed_init ( struct NpsSensorAirspeed airspeed,
double  time 
)

◆ nps_sensor_airspeed_run_step()

void nps_sensor_airspeed_run_step ( struct NpsSensorAirspeed airspeed,
double  time 
)

Definition at line 63 of file nps_sensor_airspeed.c.

References NpsFdm::airspeed, NpsSensorAirspeed::data_available, fdm, get_gaussian_noise(), NpsSensorAirspeed::next_update, NpsSensorAirspeed::noise_std_dev, NPS_AIRSPEED_DT, NpsSensorAirspeed::offset, TRUE, and NpsSensorAirspeed::value.

Referenced by nps_sensors_run_step().

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