Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
#include "subsystems/gps.h"
#include "subsystems/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_impl_init (void) |
GPS initialization. More... | |
void | gps_parse (void) |
Variables | |
unsigned char | gps_udp_read_buffer [256] |
struct FmsNetwork * | gps_network = NULL |
#define GPS_UDP_HOST 192.168.1.2 |
Definition at line 36 of file gps_udp.c.
Referenced by gps_impl_init().
#define GPS_UDP_MSG_LEN (11*4) |
Definition at line 39 of file gps_udp.c.
Referenced by gps_parse().
#define STX 99 |
Definition at line 51 of file gps_udp.c.
Referenced by gps_parse().
#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) |
Definition at line 53 of file gps_udp.c.
Referenced by gps_parse().
void gps_impl_init | ( | void | ) |
GPS initialization.
GPS model specific init implementation.
Definition at line 45 of file gps_udp.c.
References GpsState::cacc, FALSE, GpsState::fix, gps, gps_available, GPS_FIX_NONE, gps_network, GPS_UDP_HOST, GpsState::gspeed, ltp_def_from_ecef_i(), and TRUE.
void gps_parse | ( | void | ) |
Definition at line 55 of file gps_udp.c.
References LlaCoor_i::alt, UtmCoor_i::alt, UtmCoor_f::east, UtmCoor_i::east, GpsState::ecef_pos, GpsState::ecef_vel, GpsState::fix, get_sys_time_usec(), gps, GPS_FIX_3D, gps_network, GPS_UDP_ID, GPS_UDP_MSG_LEN, gps_udp_read_buffer, GpsState::hmsl, GpsState::last_3dfix_ticks, GpsState::last_3dfix_time, GpsState::last_msg_ticks, GpsState::last_msg_time, LlaCoor_i::lat, LLA_FLOAT_OF_BFP, GpsState::lla_pos, LlaCoor_i::lon, nav_utm_zone0, sys_time::nb_sec, sys_time::nb_sec_rem, UtmCoor_f::north, UtmCoor_i::north, STX, UDP_GPS_INT, utm_of_lla_f(), GpsState::utm_pos, EcefCoor_i::x, EcefCoor_i::y, EcefCoor_i::z, UtmCoor_f::zone, and UtmCoor_i::zone.
struct FmsNetwork* gps_network = NULL |
Definition at line 43 of file gps_udp.c.
Referenced by gps_impl_init(), and gps_parse().
unsigned char gps_udp_read_buffer[256] |
Definition at line 42 of file gps_udp.c.
Referenced by gps_parse().