|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include <time.h>#include "modules/gps/gps_sim_nps.h"#include "modules/gps/gps.h"#include "modules/core/abi.h"#include "nps_sensors.h"#include "nps_fdm.h"#include "modules/datalink/datalink.h"Go to the source code of this file.
Macros | |
| #define | GPS_NPS_PACC 200 |
| Simulated position accuracy (cm). | |
| #define | GPS_NPS_HACC 120 |
| Simulated horizontal position accuracy (cm). | |
| #define | GPS_NPS_VACC 180 |
| Simulated vertical position accuracy (cm). | |
| #define | GPS_NPS_SACC 20 |
| Simulated speed accuracy (cm/s). | |
| #define | GPS_NPS_PDOP 140 |
| Simulated position dilution of precision (x100). | |
Functions | |
| void | gps_feed_value (void) |
| void | gps_nps_init (void) |
Variables | |
| struct GpsState | gps_nps = {0} |
| bool | gps_has_fix |
| #define GPS_NPS_HACC 120 |
Simulated horizontal position accuracy (cm).
Definition at line 40 of file gps_sim_nps.c.
Referenced by gps_feed_value().
| #define GPS_NPS_PACC 200 |
Simulated position accuracy (cm).
Definition at line 35 of file gps_sim_nps.c.
Referenced by gps_feed_value().
| #define GPS_NPS_PDOP 140 |
Simulated position dilution of precision (x100).
Definition at line 55 of file gps_sim_nps.c.
Referenced by gps_feed_value().
| #define GPS_NPS_SACC 20 |
Simulated speed accuracy (cm/s).
Definition at line 50 of file gps_sim_nps.c.
Referenced by gps_feed_value().
| #define GPS_NPS_VACC 180 |
Simulated vertical position accuracy (cm).
Definition at line 45 of file gps_sim_nps.c.
Referenced by gps_feed_value().
| void gps_feed_value | ( | void | ) |
Definition at line 58 of file gps_sim_nps.c.
References fdm, get_sys_time_usec(), GPS_FIX_3D, GPS_FIX_NONE, gps_has_fix, gps_nps, GPS_NPS_HACC, GPS_NPS_PACC, GPS_NPS_PDOP, GPS_NPS_SACC, GPS_NPS_VACC, GPS_SIM_ID, GPS_VALID_COURSE_BIT, GPS_VALID_HMSL_BIT, GPS_VALID_POS_ECEF_BIT, GPS_VALID_POS_LLA_BIT, GPS_VALID_VEL_ECEF_BIT, GPS_VALID_VEL_NED_BIT, ltp_def_from_ecef_d(), sys_time::nb_sec, sys_time::nb_sec_rem, ned_of_ecef_vect_d(), sensors, SYS_TIME_GPS_LEAP_SECONDS, SYS_TIME_MSEC_PER_WEEK, SYS_TIME_UNIX_GPS_EPOCH_MS, NedCoor_d::x, NedCoor_d::y, and NedCoor_d::z.
Referenced by nps_autopilot_run_step().
| void gps_nps_init | ( | void | ) |
Definition at line 140 of file gps_sim_nps.c.
References gps_has_fix.
| bool gps_has_fix |
Definition at line 31 of file gps_sim_nps.c.
Referenced by gps_feed_value(), gps_nps_init(), on_WORLD_ENV(), sensors_hitl_init(), and sensors_hitl_parse_HITL_GPS().
| struct GpsState gps_nps = {0} |
Definition at line 30 of file gps_sim_nps.c.
Referenced by gps_feed_value().