Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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_PARAMS>
+ 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

#define NPS_AIRSPEED_DT   0.01

10Hz default

Definition at line 40 of file nps_sensor_airspeed.c.

Referenced by nps_sensor_airspeed_run_step().

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

Referenced by nps_sensor_airspeed_init().

#define NPS_AIRSPEED_OFFSET   0

Definition at line 49 of file nps_sensor_airspeed.c.

Referenced by nps_sensor_airspeed_init().

Function Documentation

void nps_sensor_airspeed_init ( struct NpsSensorAirspeed airspeed,
double  time 
)
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: