|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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);
int32_t lon
in degrees*1e7
uint8_t valid_fields
bitfield indicating valid fields (GPS_VALID_x_BIT)
int32_t alt
in millimeters above WGS84 reference ellipsoid
data structure for GPS information
struct FmsNetwork * gps_network
#define GPS_VALID_POS_LLA_BIT
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
int32_t lat
in degrees*1e7
uint32_t last_msg_ticks
cpu time ticks at last received GPS message
Device independent GPS code (interface)
unsigned char gps_udp_read_buffer[256]
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
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 LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
#define GPS_VALID_VEL_ECEF_BIT
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
#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
#define UDP_GPS_INT(_udp_gps_payload)