Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
|
Simulated airspeed for NPS simulator. More...
#include "math/pprz_algebra.h"
#include "math/pprz_algebra_double.h"
#include "math/pprz_algebra_float.h"
#include "std.h"
Go to the source code of this file.
Data Structures | |
struct | NpsSensorAirspeed |
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.h.
struct NpsSensorAirspeed |
Definition at line 37 of file nps_sensor_airspeed.h.
Data Fields | ||
---|---|---|
bool | data_available | |
double | next_update | |
double | noise_std_dev | noise standard deviation |
double | offset | offset in meters/second |
double | value | airspeed reading in meters/second |
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().