Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
gps_mtk.h File Reference

Mediatek MT3329 specific code. More...

#include "modules/gps/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.
#define PRIMARY_GPS   GPS_MTK
#define gps_mtk_periodic_check()
#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

◆ GpsMtk

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

◆ GPS_MTK_MAX_PAYLOAD

#define GPS_MTK_MAX_PAYLOAD   255

Includes macros generated from mtk.xml.

Definition at line 43 of file gps_mtk.h.

◆ gps_mtk_periodic_check

#define gps_mtk_periodic_check ( )
Value:
void gps_periodic_check(struct GpsState *gps_s)
Periodic GPS check.
Definition gps.c:292
struct GpsMtk gps_mtk
Definition gps_mtk.c:83

Definition at line 74 of file gps_mtk.h.

◆ GpsConfigure

#define GpsConfigure ( )
Value:
{}

Definition at line 85 of file gps_mtk.h.

Referenced by gps_mtk_event().

◆ PRIMARY_GPS

#define PRIMARY_GPS   GPS_MTK

Definition at line 46 of file gps_mtk.h.

Function Documentation

◆ gps_mtk_event()

void gps_mtk_event ( void )
extern

Definition at line 123 of file gps_mtk.c.

References dev, gps_mtk, gps_mtk_msg(), gps_mtk_parse(), and GpsConfigure.

Here is the call graph for this function:

◆ gps_mtk_init()

void gps_mtk_init ( void )
extern

Definition at line 111 of file gps_mtk.c.

References gps_mtk, GPS_MTK_ERR_NONE, and UNINIT.

Variable Documentation

◆ gps_mtk

struct GpsMtk gps_mtk
extern