Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
#include "nps_sensor_gps.h"
#include <stdio.h>
#include "generated/airframe.h"
#include "nps_fdm.h"
#include "nps_random.h"
#include "nps_sensors_utils.h"
#include <NPS_SENSORS_PARAMS>
Go to the source code of this file.
Functions | |
void | nps_sensor_gps_init (struct NpsSensorGps *gps, double time) |
void | nps_sensor_gps_run_step (struct NpsSensorGps *gps, double time) |
void nps_sensor_gps_init | ( | struct NpsSensorGps * | gps, |
double | time | ||
) |
Definition at line 10 of file nps_sensor_gps.c.
References NpsSensorGps::data_available, NpsSensorGps::ecef_pos, NpsSensorGps::ecef_vel, FALSE, FLOAT_VECT3_ZERO, NpsSensorGps::hmsl, NpsSensorGps::next_update, NpsSensorGps::pos_bias_initial, NpsSensorGps::pos_bias_random_walk_std_dev, NpsSensorGps::pos_bias_random_walk_value, NpsSensorGps::pos_latency, NpsSensorGps::pos_noise_std_dev, NpsSensorGps::speed_latency, NpsSensorGps::speed_noise_std_dev, and VECT3_ASSIGN.
Referenced by nps_sensors_init().
void nps_sensor_gps_run_step | ( | struct NpsSensorGps * | gps, |
double | time | ||
) |
Definition at line 39 of file nps_sensor_gps.c.
References NpsSensorGps::data_available, double_vect3_add_gaussian_noise(), double_vect3_update_random_walk(), NpsFdm::ecef_ecef_vel, NpsSensorGps::ecef_pos, NpsFdm::ecef_pos, NpsSensorGps::ecef_vel, fdm, NpsSensorGps::hmsl, NpsFdm::hmsl, NpsSensorGps::hmsl_history, NpsSensorGps::lla_history, lla_of_ecef_d(), NpsSensorGps::lla_pos, NpsSensorGps::next_update, NpsSensorGps::pos_bias_initial, NpsSensorGps::pos_bias_random_walk_std_dev, NpsSensorGps::pos_bias_random_walk_value, NpsSensorGps::pos_history, NpsSensorGps::pos_latency, NpsSensorGps::pos_noise_std_dev, NpsSensorGps::speed_history, NpsSensorGps::speed_latency, NpsSensorGps::speed_noise_std_dev, TRUE, UpdateSensorLatency(), UpdateSensorLatency_Single(), VECT3_ADD, and VECT3_COPY.
Referenced by nps_sensors_run_step().