AP_GPS_MTK_Common.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 3 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. //
  14. // DIYDrones Custom Mediatek GPS driver for ArduPilot and ArduPilotMega.
  15. // Code by Michael Smith, Jordi Munoz and Jose Julio, Craig Elder, DIYDrones.com
  16. //
  17. // Common definitions for MediaTek GPS modules.
  18. #pragma once
  19. #define MTK_SET_BINARY "$PGCMD,16,0,0,0,0,0*6A\r\n"
  20. #define MTK_SET_NMEA "$PGCMD,16,1,1,1,1,1*6B\r\n"
  21. #define MTK_OUTPUT_1HZ "$PMTK220,1000*1F\r\n"
  22. #define MTK_OUTPUT_2HZ "$PMTK220,500*2B\r\n"
  23. #define MTK_OUTPUT_4HZ "$PMTK220,250*29\r\n"
  24. #define MTK_OUTPUT_5HZ "$PMTK220,200*2C\r\n"
  25. #define MTK_OUTPUT_10HZ "$PMTK220,100*2F\r\n"
  26. #define MTK_BAUD_RATE_38400 "$PMTK251,38400*27\r\n"
  27. #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
  28. #define SBAS_ON "$PMTK313,1*2E\r\n"
  29. #define SBAS_OFF "$PMTK313,0*2F\r\n"
  30. #define WAAS_ON "$PMTK301,2*2E\r\n"
  31. #define WAAS_OFF "$PMTK301,0*2C\r\n"