Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
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>
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) |
Simulated airspeed for NPS simulator.
Definition in file nps_sensor_airspeed.c.
#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().
void nps_sensor_airspeed_init | ( | struct NpsSensorAirspeed * | airspeed, |
double | time | ||
) |
Definition at line 53 of file nps_sensor_airspeed.c.
References NpsSensorAirspeed::data_available, FALSE, NpsSensorAirspeed::next_update, NpsSensorAirspeed::noise_std_dev, NPS_AIRSPEED_NOISE_STD_DEV, NPS_AIRSPEED_OFFSET, NpsSensorAirspeed::offset, and NpsSensorAirspeed::value.
Referenced by nps_sensors_init().
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().