New MTK codes

git-svn-id: https://arducopter.googlecode.com/svn/trunk@400 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2010-09-06 05:05:52 +00:00
parent d68cde2571
commit 4b762bf933
1 changed files with 17 additions and 0 deletions

View File

@ -4,6 +4,23 @@
#include <GPS.h> #include <GPS.h>
#define MAXPAYLOAD 32 #define MAXPAYLOAD 32
#define MTK_SET_BINARY      "$PGCMD,16,0,0,0,0,0*6A\r\n"
#define MTK_SET_NMEA        "$PGCMD,16,1,1,1,1,1*6B\r\n"
#define MTK_OUTPUT_1HZ      "$PMTK220,1000*1F\r\n"
#define MTK_OUTPUT_2HZ      "$PMTK220,500*2B\r\n"
#define MTK_OUTPUT_4HZ      "$PMTK220,250*29\r\n"
#define MTK_OTUPUT_5HZ      "$PMTK220,200*2C\r\n"
#define MTK_OUTPUT_10HZ     "$PMTK220,100*2F\r\n"
#define MTK_BAUD_RATE_38400 "$PMTK251,38400*27\r\n"
#define SBAS_ON             "$PMTK313,1*2E\r\n"
#define SBAS_OFF            "$PMTK313,0*2F\r\n"
#define WAAS_ON             "$PSRF151,1*3F\r\n"
#define WAAS_OFF            "$PSRF151,0*3E\r\n"
class AP_GPS_MTK : public GPS class AP_GPS_MTK : public GPS
{ {
public: public: