25 #include "fms/fms_network.h"
36 #define GPS_UDP_HOST 192.168.1.2
39 #define GPS_UDP_MSG_LEN (11*4)
53 #define UDP_GPS_INT(_udp_gps_payload) (int32_t)(*((uint8_t*)_udp_gps_payload)|*((uint8_t*)_udp_gps_payload+1)<<8|((int32_t)*((uint8_t*)_udp_gps_payload+2))<<16|((int32_t)*((uint8_t*)_udp_gps_payload+3))<<24)
106 printf(
"gps_udp error: msg len invalid %d bytes\n", size);
int32_t north
in centimeters
Main include for ABI (AirBorneInterface).
position in UTM coordinates Units: meters
int32_t east
in centimeters
#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
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
#define GPS_FIX_NONE
No GPS fix.
Device independent GPS code (interface)
void gps_impl_init(void)
GPS initialization.
struct EcefCoor_i ecef_pos
position in ECEF in cm
#define UDP_GPS_INT(_udp_gps_payload)
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
uint32_t last_3dfix_time
cpu time in sec at last valid 3D fix
int32_t alt
in millimeters above WGS84 reference ellipsoid
volatile uint32_t nb_sec
full seconds since startup
uint32_t last_msg_ticks
cpu time ticks at last received GPS message
struct FmsNetwork * gps_network
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
unsigned char gps_udp_read_buffer[256]
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)