|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
66 gps_nps.
gspeed = sqrt(ned_vel_d.
x * ned_vel_d.
x + ned_vel_d.
y * ned_vel_d.
y) * 100;
67 gps_nps.
speed_3d = sqrt(ned_vel_d.
x * ned_vel_d.
x + ned_vel_d.
y * ned_vel_d.
y + ned_vel_d.
z * ned_vel_d.
z) * 100;
69 #if GpsId(PRIMARY_GPS) == GPS_DATALINK_ID
int32_t lon
in degrees*1e7
uint8_t valid_fields
bitfield indicating valid fields (GPS_VALID_x_BIT)
void ltp_def_from_ecef_d(struct LtpDef_d *def, struct EcefCoor_d *ecef)
int32_t alt
in millimeters above WGS84 reference ellipsoid
#define GPS_VALID_COURSE_BIT
uint32_t tow
GPS time of week in ms.
data structure for GPS information
uint32_t pacc
position accuracy in cm
uint32_t sacc
speed accuracy in cm/s
uint32_t vacc
vertical accuracy in cm
struct NedCoor_i ned_vel
speed NED in cm/s
#define GPS_VALID_POS_LLA_BIT
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
struct NpsFdm fdm
Holds all necessary NPS FDM state information.
int32_t lat
in degrees*1e7
uint32_t last_msg_ticks
cpu time ticks at last received GPS message
uint32_t hacc
horizontal accuracy in cm
Device independent GPS code (interface)
uint16_t speed_3d
norm of 3d speed in cm/s
void gps_feed_value(void)
vector in North East Down coordinates Units: meters
uint16_t gspeed
norm of 2d ground speed in cm/s
uint32_t last_3dfix_time
cpu time in sec at last valid 3D fix
uint32_t last_3dfix_ticks
cpu time ticks at last valid 3D fix
definition of the local (flat earth) coordinate system
int32_t course
GPS course over ground in rad*1e7, [0, 2*Pi]*1e7 (CW/north)
uint32_t last_msg_time
cpu time in sec at last received GPS message
struct EcefCoor_i ecef_pos
position in ECEF in cm
struct DoubleEulers ltp_to_body_eulers
#define GPS_VALID_VEL_NED_BIT
struct LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
#define GPS_VALID_VEL_ECEF_BIT
uint8_t num_sv
number of sat in fix
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
int32_t hmsl
height above mean sea level (MSL) in mm
void ned_of_ecef_vect_d(struct NedCoor_d *ned, struct LtpDef_d *def, struct EcefCoor_d *ecef)
uint16_t pdop
position dilution of precision scaled by 100
#define GPS_VALID_POS_ECEF_BIT
volatile uint32_t nb_sec
full seconds since startup
struct EcefCoor_i ecef_vel
speed ECEF in cm/s
#define GPS_FIX_NONE
No GPS fix.
#define GPS_FIX_3D
3D GPS fix
#define GPS_VALID_HMSL_BIT