Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/gps/gps.h"
#include "modules/core/abi.h"
#include "fms/fms_network.h"
#include <string.h>
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | GPS_UDP_HOST 192.168.1.2 |
#define | GPS_UDP_MSG_LEN (11*4) |
#define | STX 99 |
#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) |
Functions | |
void | gps_udp_init (void) |
void | gps_udp_parse (void) |
Variables | |
unsigned char | gps_udp_read_buffer [256] |
struct FmsNetwork * | gps_network = NULL |
struct GpsState | gps_udp |
void gps_udp_init | ( | void | ) |
Definition at line 42 of file gps_udp.c.
References GpsState::fix, GPS_FIX_NONE, gps_network, gps_udp, GPS_UDP_HOST, and TRUE.
void gps_udp_parse | ( | void | ) |
Definition at line 52 of file gps_udp.c.
References LlaCoor_i::alt, GpsState::ecef_pos, GpsState::ecef_vel, GpsState::fix, get_sys_time_usec(), GPS_FIX_3D, gps_network, gps_udp, GPS_UDP_ID, GPS_UDP_MSG_LEN, gps_udp_read_buffer, GPS_VALID_HMSL_BIT, GPS_VALID_POS_ECEF_BIT, GPS_VALID_POS_LLA_BIT, GPS_VALID_VEL_ECEF_BIT, GpsState::hmsl, GpsState::last_3dfix_ticks, GpsState::last_3dfix_time, GpsState::last_msg_ticks, GpsState::last_msg_time, LlaCoor_i::lat, GpsState::lla_pos, LlaCoor_i::lon, sys_time::nb_sec, sys_time::nb_sec_rem, STX, UDP_GPS_INT, GpsState::valid_fields, EcefCoor_i::x, EcefCoor_i::y, and EcefCoor_i::z.
struct FmsNetwork* gps_network = NULL |
Definition at line 38 of file gps_udp.c.
Referenced by gps_udp_init(), and gps_udp_parse().
struct GpsState gps_udp |
Definition at line 38 of file gps_udp.c.
Referenced by gps_udp_init(), and gps_udp_parse().
unsigned char gps_udp_read_buffer[256] |
Definition at line 37 of file gps_udp.c.
Referenced by gps_udp_parse().