2013-05-29 20:52:21 -03:00
|
|
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2013-08-29 02:34:34 -03:00
|
|
|
/*
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2010-12-24 02:35:09 -04:00
|
|
|
//
|
|
|
|
// DIYDrones Custom Mediatek GPS driver for ArduPilot and ArduPilotMega.
|
2012-12-14 22:47:35 -04:00
|
|
|
// Code by Michael Smith, Jordi Munoz and Jose Julio, Craig Elder, DIYDrones.com
|
2010-12-24 02:35:09 -04:00
|
|
|
//
|
|
|
|
// Common definitions for MediaTek GPS modules.
|
|
|
|
|
2012-09-27 02:18:44 -03:00
|
|
|
#ifndef __AP_GPS_MTK_COMMON_H__
|
|
|
|
#define __AP_GPS_MTK_COMMON_H__
|
2010-12-24 02:35:09 -04:00
|
|
|
|
2012-12-14 22:47:35 -04:00
|
|
|
#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"
|
2010-12-24 02:35:09 -04:00
|
|
|
|
2012-12-14 22:47:35 -04:00
|
|
|
#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_OUTPUT_5HZ "$PMTK220,200*2C\r\n"
|
|
|
|
#define MTK_OUTPUT_10HZ "$PMTK220,100*2F\r\n"
|
2010-12-24 02:35:09 -04:00
|
|
|
|
|
|
|
#define MTK_BAUD_RATE_38400 "$PMTK251,38400*27\r\n"
|
|
|
|
|
2012-12-14 22:47:35 -04:00
|
|
|
#define MTK_NAVTHRES_OFF "$PMTK397,0*23\r\n" // Set Nav Threshold (the minimum speed the GPS must be moving to update the position) to 0 m/s
|
2010-12-24 02:35:09 -04:00
|
|
|
|
2012-12-14 22:47:35 -04:00
|
|
|
#define SBAS_ON "$PMTK313,1*2E\r\n"
|
|
|
|
#define SBAS_OFF "$PMTK313,0*2F\r\n"
|
2012-12-11 19:35:52 -04:00
|
|
|
|
2012-12-14 22:47:35 -04:00
|
|
|
#define WAAS_ON "$PMTK301,2*2E\r\n"
|
|
|
|
#define WAAS_OFF "$PMTK301,0*2C\r\n"
|
2010-12-24 02:35:09 -04:00
|
|
|
|
2012-09-27 02:18:44 -03:00
|
|
|
#endif // __AP_GPS_MTK_COMMON_H__
|