Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
gps_udp.c File Reference
#include "modules/gps/gps.h"
#include "modules/core/abi.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_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
 

Macro Definition Documentation

◆ GPS_UDP_HOST

#define GPS_UDP_HOST   192.168.1.2

Definition at line 31 of file gps_udp.c.

◆ GPS_UDP_MSG_LEN

#define GPS_UDP_MSG_LEN   (11*4)

Definition at line 34 of file gps_udp.c.

◆ STX

#define STX   99

Definition at line 48 of file gps_udp.c.

◆ UDP_GPS_INT

#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 50 of file gps_udp.c.

Function Documentation

◆ gps_udp_init()

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.

◆ gps_udp_parse()

Variable Documentation

◆ gps_network

struct FmsNetwork* gps_network = NULL

Definition at line 38 of file gps_udp.c.

Referenced by gps_udp_init(), and gps_udp_parse().

◆ gps_udp

struct GpsState gps_udp

Definition at line 38 of file gps_udp.c.

Referenced by gps_udp_init(), and gps_udp_parse().

◆ gps_udp_read_buffer

unsigned char gps_udp_read_buffer[256]

Definition at line 37 of file gps_udp.c.

Referenced by gps_udp_parse().