31 #include "generated/airframe.h"
39 #ifndef NPS_AIRSPEED_DT
40 #define NPS_AIRSPEED_DT 0.01
44 #ifndef NPS_AIRSPEED_NOISE_STD_DEV
45 #define NPS_AIRSPEED_NOISE_STD_DEV 0.1
48 #ifndef NPS_AIRSPEED_OFFSET
49 #define NPS_AIRSPEED_OFFSET 0
66 if (time < airspeed->next_update) {
75 if (airspeed->
value < 0) {
76 airspeed->
value = 0.0;
double airspeed
equivalent airspeed in m/s
struct NpsFdm fdm
Holds all necessary NPS FDM state information.
double get_gaussian_noise(void)
void nps_sensor_airspeed_init(struct NpsSensorAirspeed *airspeed, double time)
void nps_sensor_airspeed_run_step(struct NpsSensorAirspeed *airspeed, double time)
#define NPS_AIRSPEED_OFFSET
#define NPS_AIRSPEED_NOISE_STD_DEV
standard deviation in meters/second (default 0.1 m/s)
#define NPS_AIRSPEED_DT
10Hz default
Simulated airspeed for NPS simulator.
double offset
offset in meters/second
double value
airspeed reading in meters/second
double noise_std_dev
noise standard deviation