31 #include "generated/airframe.h"
36 #include NPS_SENSORS_PARAMS
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;
struct NpsFdm fdm
Holds all necessary NPS FDM state information.
#define NPS_AIRSPEED_OFFSET
Simulated airspeed for NPS simulator.
double value
airspeed reading in meters/second
double noise_std_dev
noise standard deviation
void nps_sensor_airspeed_run_step(struct NpsSensorAirspeed *airspeed, double time)
double get_gaussian_noise(void)
double airspeed
equivalent airspeed in m/s
#define NPS_AIRSPEED_NOISE_STD_DEV
standard deviation in meters/second (default 0.1 m/s)
double offset
offset in meters/second
#define NPS_AIRSPEED_DT
10Hz default
void nps_sensor_airspeed_init(struct NpsSensorAirspeed *airspeed, double time)