Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gps_udp.c File Reference
#include "subsystems/gps.h"
#include "fms/fms_network.h"
#include <string.h>
#include <stdio.h>
+ Include dependency graph for gps_udp.c:

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

bool_t gps_available
 Is set to TRUE when a new REMOTE_GPS packet is received and parsed. More...
 
unsigned char gps_udp_read_buffer [256]
 
struct FmsNetwork * gps_network = NULL
 

Macro Definition Documentation

#define GPS_UDP_HOST   "192.168.1.2"

Definition at line 38 of file gps_udp.c.

Referenced by gps_impl_init().

#define GPS_UDP_MSG_LEN   (11*4)

Definition at line 41 of file gps_udp.c.

Referenced by gps_parse().

#define STX   99

Definition at line 53 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 55 of file gps_udp.c.

Referenced by gps_parse().

Function Documentation

void gps_impl_init ( void  )

GPS initialization.

Definition at line 47 of file gps_udp.c.

References FALSE, GpsState::fix, gps, gps_ardrone2_available, gps_available, GPS_FIX_NONE, gps_network, GPS_UDP_HOST, and TRUE.

Variable Documentation

bool_t gps_available

Is set to TRUE when a new REMOTE_GPS packet is received and parsed.

Definition at line 24 of file gps_udp.c.

Referenced by gps_impl_init(), and gps_parse().

struct FmsNetwork* gps_network = NULL

Definition at line 45 of file gps_udp.c.

Referenced by gps_impl_init(), and gps_parse().

unsigned char gps_udp_read_buffer[256]

Definition at line 44 of file gps_udp.c.

Referenced by gps_parse().