4 #include "generated/airframe.h"
8 #include NPS_SENSORS_PARAMS
15 gps->pos_latency = NPS_GPS_POS_LATENCY;
16 gps->speed_latency = NPS_GPS_SPEED_LATENCY;
18 NPS_GPS_POS_NOISE_STD_DEV, NPS_GPS_POS_NOISE_STD_DEV, NPS_GPS_POS_NOISE_STD_DEV);
20 NPS_GPS_SPEED_NOISE_STD_DEV, NPS_GPS_SPEED_NOISE_STD_DEV, NPS_GPS_SPEED_NOISE_STD_DEV);
22 NPS_GPS_POS_BIAS_INITIAL_X, NPS_GPS_POS_BIAS_INITIAL_Y, NPS_GPS_POS_BIAS_INITIAL_Z);
24 NPS_GPS_POS_BIAS_RANDOM_WALK_STD_DEV_X,
25 NPS_GPS_POS_BIAS_RANDOM_WALK_STD_DEV_Y,
26 NPS_GPS_POS_BIAS_RANDOM_WALK_STD_DEV_Z);
28 gps->next_update = time;
41 if (time < gps->next_update) {
88 double cur_hmsl_reading =
fdm.
hmsl;
91 gps->next_update += NPS_GPS_DT;