25 #include "fms/fms_network.h"
31 #define GPS_UDP_HOST 192.168.1.2
34 #define GPS_UDP_MSG_LEN (11*4)
50 #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)
93 printf(
"gps_udp error: msg len invalid %d bytes\n", size);
uint8_t valid_fields
bitfield indicating valid fields (GPS_VALID_x_BIT)
Main include for ABI (AirBorneInterface).
#define GPS_FIX_3D
3D GPS fix
uint32_t last_3dfix_ticks
cpu time ticks at last valid 3D fix
int32_t alt
in millimeters above WGS84 reference ellipsoid
uint32_t last_msg_time
cpu time in sec at last received GPS message
int32_t hmsl
height above mean sea level (MSL) in mm
data structure for GPS information
#define GPS_FIX_NONE
No GPS fix.
Device independent GPS code (interface)
struct EcefCoor_i ecef_pos
position in ECEF in cm
#define GPS_VALID_HMSL_BIT
#define UDP_GPS_INT(_udp_gps_payload)
int32_t lon
in degrees*1e7
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
volatile uint32_t nb_sec
full seconds since startup
#define GPS_VALID_POS_ECEF_BIT
uint32_t last_msg_ticks
cpu time ticks at last received GPS message
#define GPS_VALID_POS_LLA_BIT
struct FmsNetwork * gps_network
struct EcefCoor_i ecef_vel
speed ECEF in cm/s
#define GPS_VALID_VEL_ECEF_BIT
struct LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
int32_t lat
in degrees*1e7
unsigned char gps_udp_read_buffer[256]