Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
gps_skytraq.h File Reference
#include "mcu_periph/uart.h"
+ Include dependency graph for gps_skytraq.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GpsSkytraq
 

Macros

#define SKYTRAQ_ID_NAVIGATION_DATA   0XA8
 
#define PRIMARY_GPS   GPS_SKYTRAQ
 
#define GPS_SKYTRAQ_MAX_PAYLOAD   255
 
#define gps_skytraq_periodic_check()   gps_periodic_check(&gps_skytraq.state)
 

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_init (void)
 
void gps_skytraq_event (void)
 

Variables

struct GpsSkytraq gps_skytraq
 

Data Structure Documentation

◆ GpsSkytraq

struct GpsSkytraq

Definition at line 44 of file gps_skytraq.h.

+ Collaboration diagram for GpsSkytraq:
Data Fields
uint8_t checksum
uint8_t error_cnt
enum GpsSkytraqError error_last
uint16_t len
bool msg_available
uint8_t msg_buf[GPS_SKYTRAQ_MAX_PAYLOAD]
uint8_t msg_id
uint8_t msg_idx
struct LtpDef_i ref_ltp
struct GpsState state
uint8_t status

Macro Definition Documentation

◆ GPS_SKYTRAQ_MAX_PAYLOAD

#define GPS_SKYTRAQ_MAX_PAYLOAD   255

Definition at line 43 of file gps_skytraq.h.

◆ gps_skytraq_periodic_check

#define gps_skytraq_periodic_check ( )    gps_periodic_check(&gps_skytraq.state)

Definition at line 66 of file gps_skytraq.h.

◆ PRIMARY_GPS

#define PRIMARY_GPS   GPS_SKYTRAQ

Definition at line 30 of file gps_skytraq.h.

◆ SKYTRAQ_ID_NAVIGATION_DATA

#define SKYTRAQ_ID_NAVIGATION_DATA   0XA8

Definition at line 27 of file gps_skytraq.h.

Enumeration Type Documentation

◆ GpsSkytraqError

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 34 of file gps_skytraq.h.

Function Documentation

◆ gps_skytraq_event()

void gps_skytraq_event ( void  )

Definition at line 115 of file gps_skytraq.c.

References dev, gps_skytraq, gps_skytraq_msg(), gps_skytraq_parse(), and GpsSkytraq::msg_available.

+ Here is the call graph for this function:

◆ gps_skytraq_init()

void gps_skytraq_init ( void  )

Definition at line 93 of file gps_skytraq.c.

References gps_skytraq, GpsSkytraq::status, and UNINIT.

Variable Documentation

◆ gps_skytraq

struct GpsSkytraq gps_skytraq
extern