Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gps_skytraq.c File Reference
#include "subsystems/gps.h"
#include "led.h"
+ Include dependency graph for gps_skytraq.c:

Go to the source code of this file.

Macros

#define UNINIT   0
 
#define GOT_SYNC1   1
 
#define GOT_SYNC2   2
 
#define GOT_LEN1   3
 
#define GOT_LEN2   4
 
#define GOT_ID   5
 
#define GOT_PAYLOAD   6
 
#define GOT_CHECKSUM   7
 
#define GOT_SYNC3   8
 
#define SKYTRAQ_FIX_NONE   0x00
 
#define SKYTRAQ_FIX_2D   0x01
 
#define SKYTRAQ_FIX_3D   0x02
 
#define SKYTRAQ_FIX_3D_DGPS   0x03
 
#define MAX_DISTANCE   1000000
 

Functions

static int distance_too_great (struct EcefCoor_i *ecef_ref, struct EcefCoor_i *ecef_pos)
 
void gps_impl_init (void)
 
void gps_skytraq_read_message (void)
 
void gps_skytraq_parse (uint8_t c)
 

Variables

struct GpsSkytraq gps_skytraq
 
struct LtpDef_i ref_ltp
 

Macro Definition Documentation

#define GOT_CHECKSUM   7

Definition at line 41 of file gps_skytraq.c.

Referenced by gps_skytraq_parse().

#define GOT_ID   5

Definition at line 39 of file gps_skytraq.c.

Referenced by gps_skytraq_parse().

#define GOT_LEN1   3

Definition at line 37 of file gps_skytraq.c.

Referenced by gps_skytraq_parse().

#define GOT_LEN2   4

Definition at line 38 of file gps_skytraq.c.

Referenced by gps_skytraq_parse().

#define GOT_PAYLOAD   6

Definition at line 40 of file gps_skytraq.c.

Referenced by gps_skytraq_parse().

#define GOT_SYNC1   1

Definition at line 35 of file gps_skytraq.c.

Referenced by gps_skytraq_parse().

#define GOT_SYNC2   2

Definition at line 36 of file gps_skytraq.c.

Referenced by gps_skytraq_parse().

#define GOT_SYNC3   8

Definition at line 42 of file gps_skytraq.c.

Referenced by gps_skytraq_parse().

#define MAX_DISTANCE   1000000

Definition at line 50 of file gps_skytraq.c.

Referenced by distance_too_great().

#define SKYTRAQ_FIX_2D   0x01

Definition at line 45 of file gps_skytraq.c.

Referenced by gps_skytraq_read_message().

#define SKYTRAQ_FIX_3D   0x02

Definition at line 46 of file gps_skytraq.c.

Referenced by gps_skytraq_read_message().

#define SKYTRAQ_FIX_3D_DGPS   0x03

Definition at line 47 of file gps_skytraq.c.

Referenced by gps_skytraq_read_message().

#define SKYTRAQ_FIX_NONE   0x00

Definition at line 44 of file gps_skytraq.c.

#define UNINIT   0

Definition at line 34 of file gps_skytraq.c.

Referenced by gps_impl_init(), and gps_skytraq_parse().

Function Documentation

static int distance_too_great ( struct EcefCoor_i ecef_ref,
struct EcefCoor_i ecef_pos 
)
static

Definition at line 223 of file gps_skytraq.c.

References FALSE, MAX_DISTANCE, TRUE, EcefCoor_i::x, EcefCoor_i::y, and EcefCoor_i::z.

Referenced by gps_skytraq_read_message().

+ Here is the caller graph for this function:

void gps_impl_init ( void  )

Definition at line 58 of file gps_skytraq.c.

References gps_skytraq, GpsSkytraq::status, and UNINIT.

Variable Documentation

struct GpsSkytraq gps_skytraq

Definition at line 31 of file gps_skytraq.c.

Referenced by gps_impl_init(), gps_skytraq_parse(), and gps_skytraq_read_message().

struct LtpDef_i ref_ltp

Definition at line 54 of file gps_skytraq.c.

Referenced by gps_skytraq_read_message().