• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

AP_GPS_MTK_Common.h

Go to the documentation of this file.
00001 // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
00002 //
00003 //  DIYDrones Custom Mediatek GPS driver for ArduPilot and ArduPilotMega.
00004 //      Code by Michael Smith, Jordi Munoz and Jose Julio, DIYDrones.com
00005 //
00006 //      This library is free software; you can redistribute it and / or
00007 //      modify it under the terms of the GNU Lesser General Public
00008 //      License as published by the Free Software Foundation; either
00009 //      version 2.1 of the License, or (at your option) any later version.
00010 //
00011 // Common definitions for MediaTek GPS modules.
00012 
00013 #ifndef AP_GPS_MTK_Common_h
00014 #define AP_GPS_MTK_Common_h
00015 
00016 #define MTK_SET_BINARY  "$PGCMD,16,0,0,0,0,0*6A\r\n"
00017 #define MTK_SET_NMEA    "$PGCMD,16,1,1,1,1,1*6B\r\n"
00018 
00019 #define MTK_OUTPUT_1HZ  "$PMTK220,1000*1F\r\n"
00020 #define MTK_OUTPUT_2HZ  "$PMTK220,500*2B\r\n"
00021 #define MTK_OUTPUT_4HZ  "$PMTK220,250*29\r\n"
00022 #define MTK_OTUPUT_5HZ  "$PMTK220,200*2C\r\n"
00023 #define MTK_OUTPUT_10HZ "$PMTK220,100*2F\r\n"
00024 
00025 #define MTK_BAUD_RATE_38400 "$PMTK251,38400*27\r\n"
00026 
00027 #define SBAS_ON                 "$PMTK313,1*2E\r\n"
00028 #define SBAS_OFF                "$PMTK313,0*2F\r\n"
00029 
00030 #define WAAS_ON                 "$PSRF151,1*3F\r\n"
00031 #define WAAS_OFF                "$PSRF151,0*3E\r\n"
00032 
00033 #endif // AP_GPS_MTK_Common_h

Generated for ArduPilot Libraries by doxygen