3 #include "generated/airframe.h"
8 #include NPS_SENSORS_PARAMS
11 #ifndef NPS_TEMPERATURE_DT
12 #define NPS_TEMPERATURE_DT 0.01
15 #ifndef NPS_TEMPERATURE_NOISE_STD_DEV
16 #define NPS_TEMPERATURE_NOISE_STD_DEV 0.1
21 temperature->
value = 0.;
30 if (time < temperature->next_update) {
#define NPS_TEMPERATURE_NOISE_STD_DEV
struct NpsFdm fdm
Holds all necessary NPS FDM state information.
double get_gaussian_noise(void)
double noise_std_dev
noise standard deviation
void nps_sensor_temperature_init(struct NpsSensorTemperature *temperature, double time)
double value
temperature in degrees Celcius
#define NPS_TEMPERATURE_DT
10Hz default
void nps_sensor_temperature_run_step(struct NpsSensorTemperature *temperature, double time)
double temperature
current temperature in degrees Celcius