Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gps_mtk.h File Reference

Mediatek MT3329 specific code. More...

#include "subsystems/gps.h"
#include "mcu_periph/uart.h"
#include "mtk_protocol.h"
+ Include dependency graph for gps_mtk.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GpsMtk
 

Macros

#define GPS_MTK_MAX_PAYLOAD   255
 Includes macros generated from mtk.xml. More...
 
#define PRIMARY_GPS   GPS_MTK
 
#define gps_mtk_periodic_check()   gps_periodic_check(&gps_mtk.state)
 
#define GpsConfigure()   {}
 

Functions

void gps_mtk_event (void)
 
void gps_mtk_init (void)
 

Variables

struct GpsMtk gps_mtk
 

Detailed Description

Mediatek MT3329 specific code.

supports: DIYDrones V1.4 protocol (AXN1.30_2278) DIYDrones V1.6 protocol (AXN1.30_2389)

documentation is partly incorrect, see mtk.xml for what seems to be "real"

Definition in file gps_mtk.h.


Data Structure Documentation

struct GpsMtk

Definition at line 49 of file gps_mtk.h.

+ Collaboration diagram for GpsMtk:
Data Fields
uint8_t ck_a
uint8_t ck_b
uint8_t error_cnt
uint8_t error_last
uint16_t len
bool msg_available
uint8_t msg_buf[GPS_MTK_MAX_PAYLOAD]
uint8_t msg_class
uint8_t msg_id
uint8_t msg_idx
uint8_t send_ck_a
uint8_t send_ck_b
uint8_t sol_flags
struct GpsState state
uint8_t status
uint8_t status_flags

Macro Definition Documentation

#define GPS_MTK_MAX_PAYLOAD   255

Includes macros generated from mtk.xml.

Definition at line 43 of file gps_mtk.h.

#define gps_mtk_periodic_check ( )    gps_periodic_check(&gps_mtk.state)

Definition at line 74 of file gps_mtk.h.

#define GpsConfigure ( )    {}

Definition at line 85 of file gps_mtk.h.

Referenced by gps_mtk_event().

#define PRIMARY_GPS   GPS_MTK

Definition at line 46 of file gps_mtk.h.

Function Documentation

void gps_mtk_event ( void  )

Definition at line 123 of file gps_mtk.c.

References dev, gps_mtk, gps_mtk_msg(), gps_mtk_parse(), GpsConfigure, and GpsMtk::msg_available.

+ Here is the call graph for this function:

void gps_mtk_init ( void  )

Variable Documentation

struct GpsMtk gps_mtk