25 #include "nps_sensors.h"
52 gps.
hmsl = sensors.gps.hmsl * 1000.;
64 gps.
gspeed = sqrt(ned_vel_d.
x * ned_vel_d.
x + ned_vel_d.
y * ned_vel_d.
y) * 100;
65 gps.
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;
int32_t north
in centimeters
vector in North East Down coordinates Units: meters
Main include for ABI (AirBorneInterface).
position in UTM coordinates Units: meters
int32_t east
in centimeters
uint16_t speed_3d
norm of 3d speed in cm/s
#define GPS_FIX_3D
3D GPS fix
struct UtmCoor_i utm_pos
position in UTM (north,east: cm; alt: mm over ellipsoid)
uint32_t last_3dfix_ticks
cpu time ticks at last valid 3D fix
void gps_impl_init()
GPS initialization.
int32_t alt
in millimeters above WGS84 reference ellipsoid
static uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
uint32_t last_msg_time
cpu time in sec at last received GPS message
uint8_t zone
UTM zone number.
Paparazzi floating point math for geodetic calculations.
vector in Latitude, Longitude and Altitude
int32_t hmsl
height above mean sea level in mm
uint32_t tow
GPS time of week in ms.
#define GPS_FIX_NONE
No GPS fix.
Device independent GPS code (interface)
struct EcefCoor_i ecef_pos
position in ECEF in cm
definition of the local (flat earth) coordinate system
int32_t lon
in degrees*1e7
uint8_t zone
UTM zone number.
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
void ltp_def_from_ecef_d(struct LtpDef_d *def, struct EcefCoor_d *ecef)
uint32_t last_3dfix_time
cpu time in sec at last valid 3D fix
int32_t alt
in millimeters above WGS84 reference ellipsoid
int32_t course
GPS course over ground in rad*1e7, [0, 2*Pi]*1e7 (CW/north)
volatile uint32_t nb_sec
full seconds since startup
uint32_t last_msg_ticks
cpu time ticks at last received GPS message
uint16_t gspeed
norm of 2d ground speed in cm/s
struct EcefCoor_i ecef_vel
speed ECEF in cm/s
struct LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
int32_t lat
in degrees*1e7
struct NedCoor_i ned_vel
speed NED in cm/s
struct GpsState gps
global GPS state
#define LLA_FLOAT_OF_BFP(_o, _i)
void utm_of_lla_f(struct UtmCoor_f *utm, struct LlaCoor_f *lla)
void ned_of_ecef_vect_d(struct NedCoor_d *ned, struct LtpDef_d *def, struct EcefCoor_d *ecef)