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_skytraq.h File Reference
#include "mcu_periph/uart.h"
+ Include dependency graph for gps_skytraq.h:

Go to the source code of this file.

Data Structures

struct  GpsSkytraq
 

Macros

#define SKYTRAQ_ID_NAVIGATION_DATA   0XA8
 
#define GPS_SKYTRAQ_MAX_PAYLOAD   255
 
#define __GpsLink(dev, _x)   dev##_x
 
#define _GpsLink(dev, _x)   __GpsLink(dev, _x)
 
#define GpsLink(_x)   _GpsLink(GPS_LINK, _x)
 
#define GpsBuffer()   GpsLink(ChAvailable())
 
#define GpsEvent(_sol_available_callback)
 
#define ReadGpsBuffer()
 

Enumerations

enum  GpsSkytraqError {
  GPS_SKYTRAQ_ERR_NONE = 0, GPS_SKYTRAQ_ERR_OVERRUN, GPS_SKYTRAQ_ERR_MSG_TOO_LONG, GPS_SKYTRAQ_ERR_CHECKSUM,
  GPS_SKYTRAQ_ERR_OUT_OF_SYNC, GPS_SKYTRAQ_ERR_UNEXPECTED
}
 

Functions

void gps_skytraq_read_message (void)
 
void gps_skytraq_parse (uint8_t c)
 

Variables

struct GpsSkytraq gps_skytraq
 

Macro Definition Documentation

#define __GpsLink (   dev,
  _x 
)    dev##_x

Definition at line 61 of file gps_skytraq.h.

#define _GpsLink (   dev,
  _x 
)    __GpsLink(dev, _x)

Definition at line 62 of file gps_skytraq.h.

#define GPS_SKYTRAQ_MAX_PAYLOAD   255

Definition at line 39 of file gps_skytraq.h.

Referenced by gps_skytraq_parse().

#define GpsBuffer ( )    GpsLink(ChAvailable())

Definition at line 65 of file gps_skytraq.h.

#define GpsEvent (   _sol_available_callback)
Value:
{ \
} \
} \
_sol_available_callback(); \
} \
} \
}
uint32_t last_3dfix_ticks
cpu time ticks at last valid 3D fix
Definition: gps.h:85
uint8_t msg_id
Definition: gps_skytraq.h:43
uint8_t fix
status of fix
Definition: gps.h:78
#define GPS_FIX_3D
Definition: gps.h:43
if(PrimarySpektrumState.SpektrumTimer)--PrimarySpektrumState.SpektrumTimer
#define FALSE
Definition: imu_chimu.h:141
void gps_skytraq_read_message(void)
Definition: gps_skytraq.c:99
#define SKYTRAQ_ID_NAVIGATION_DATA
Definition: gps_skytraq.h:27
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
Definition: sys_time.h:70
bool_t msg_available
Definition: gps_skytraq.h:42
#define ReadGpsBuffer()
Definition: gps_skytraq.h:86
uint32_t last_msg_ticks
cpu time ticks at last received GPS message
Definition: gps.h:87
struct GpsSkytraq gps_skytraq
Definition: gps_skytraq.c:31
volatile uint32_t nb_sec
full seconds since startup
Definition: sys_time.h:69
uint32_t last_3dfix_time
cpu time in sec at last valid 3D fix
Definition: gps.h:86
uint32_t last_msg_time
cpu time in sec at last received GPS message
Definition: gps.h:88
#define GpsBuffer()
Definition: gps_skytraq.h:65
struct GpsState gps
global GPS state
Definition: gps.c:41

Definition at line 67 of file gps_skytraq.h.

#define GpsLink (   _x)    _GpsLink(GPS_LINK, _x)

Definition at line 63 of file gps_skytraq.h.

#define ReadGpsBuffer ( )
Value:
{ \
while (GpsLink(ChAvailable())&&!gps_skytraq.msg_available) \
}
#define GpsLink(_x)
Definition: gps_skytraq.h:63
bool_t msg_available
Definition: gps_skytraq.h:42
struct GpsSkytraq gps_skytraq
Definition: gps_skytraq.c:31
void gps_skytraq_parse(uint8_t c)
Definition: gps_skytraq.c:178

Definition at line 86 of file gps_skytraq.h.

#define SKYTRAQ_ID_NAVIGATION_DATA   0XA8

Definition at line 27 of file gps_skytraq.h.

Referenced by gps_skytraq_read_message().

Enumeration Type Documentation

Enumerator
GPS_SKYTRAQ_ERR_NONE 
GPS_SKYTRAQ_ERR_OVERRUN 
GPS_SKYTRAQ_ERR_MSG_TOO_LONG 
GPS_SKYTRAQ_ERR_CHECKSUM 
GPS_SKYTRAQ_ERR_OUT_OF_SYNC 
GPS_SKYTRAQ_ERR_UNEXPECTED 

Definition at line 30 of file gps_skytraq.h.

Function Documentation

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().