PX4 Firmware
PX4 Autopilot Software http://px4.io
mtk.h File Reference
#include "gps_helper.h"
#include "../../definitions.h"
Include dependency graph for mtk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gps_mtk_packet_t
 the structures of the binary packets More...
 
class  GPSDriverMTK
 

Macros

#define MTK_SYNC1_V16   0xd0
 
#define MTK_SYNC1_V19   0xd1
 
#define MTK_SYNC2   0xdd
 
#define MTK_OUTPUT_5HZ   "$PMTK220,200*2C\r\n"
 
#define MTK_SET_BINARY   "$PGCMD,16,0,0,0,0,0*6A\r\n"
 
#define MTK_SBAS_ON   "$PMTK313,1*2E\r\n"
 
#define MTK_WAAS_ON   "$PMTK301,2*2E\r\n"
 
#define MTK_NAVTHRES_OFF   "$PMTK397,0*23\r\n"
 
#define MTK_TIMEOUT_5HZ   400
 
#define MTK_BAUDRATE   38400
 
#define MTK_RECV_BUFFER_SIZE   40
 

Enumerations

enum  mtk_decode_state_t { MTK_DECODE_UNINIT = 0, MTK_DECODE_GOT_CK_A = 1, MTK_DECODE_GOT_CK_B = 2 }
 

Detailed Description

Macro Definition Documentation

◆ MTK_BAUDRATE

#define MTK_BAUDRATE   38400

Definition at line 57 of file mtk.h.

Referenced by GPSDriverMTK::configure().

◆ MTK_NAVTHRES_OFF

#define MTK_NAVTHRES_OFF   "$PMTK397,0*23\r\n"

Definition at line 54 of file mtk.h.

Referenced by GPSDriverMTK::configure().

◆ MTK_OUTPUT_5HZ

#define MTK_OUTPUT_5HZ   "$PMTK220,200*2C\r\n"

Definition at line 50 of file mtk.h.

Referenced by GPSDriverMTK::configure().

◆ MTK_RECV_BUFFER_SIZE

#define MTK_RECV_BUFFER_SIZE   40

Definition at line 86 of file mtk.h.

◆ MTK_SBAS_ON

#define MTK_SBAS_ON   "$PMTK313,1*2E\r\n"

Definition at line 52 of file mtk.h.

Referenced by GPSDriverMTK::configure().

◆ MTK_SET_BINARY

#define MTK_SET_BINARY   "$PGCMD,16,0,0,0,0,0*6A\r\n"

Definition at line 51 of file mtk.h.

Referenced by GPSDriverMTK::configure().

◆ MTK_SYNC1_V16

#define MTK_SYNC1_V16   0xd0

Definition at line 46 of file mtk.h.

Referenced by GPSDriverMTK::parseChar().

◆ MTK_SYNC1_V19

#define MTK_SYNC1_V19   0xd1

Definition at line 47 of file mtk.h.

Referenced by GPSDriverMTK::parseChar().

◆ MTK_SYNC2

#define MTK_SYNC2   0xdd

Definition at line 48 of file mtk.h.

Referenced by GPSDriverMTK::parseChar().

◆ MTK_TIMEOUT_5HZ

#define MTK_TIMEOUT_5HZ   400

Definition at line 56 of file mtk.h.

◆ MTK_WAAS_ON

#define MTK_WAAS_ON   "$PMTK301,2*2E\r\n"

Definition at line 53 of file mtk.h.

Referenced by GPSDriverMTK::configure().

Enumeration Type Documentation

◆ mtk_decode_state_t

Enumerator
MTK_DECODE_UNINIT 
MTK_DECODE_GOT_CK_A 
MTK_DECODE_GOT_CK_B 

Definition at line 59 of file mtk.h.