From 0465ef1c521c63bc73e81b8c8fbe538ce100f802 Mon Sep 17 00:00:00 2001 From: Adnan RIHAN Date: Thu, 25 Dec 2014 15:48:57 +0100 Subject: [PATCH] Adde PMTK updates for 5 times/seconds For average projects, I think it's a good idea to include 200 millihertz updates in the source code. By default, debs can choose 5 Hz, 1Hz and 100 mHz. I think average amateur tracing projects would fit best at 200 mHz than at 1Hz or 100mHz. --- Adafruit_GPS.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Adafruit_GPS.h b/Adafruit_GPS.h index fa7a850..9ffd993 100755 --- a/Adafruit_GPS.h +++ b/Adafruit_GPS.h @@ -33,11 +33,13 @@ All text above must be included in any redistribution // Note that these only control the rate at which the position is echoed, to actually speed up the // position fix you must also send one of the position fix rate commands below too. #define PMTK_SET_NMEA_UPDATE_100_MILLIHERTZ "$PMTK220,10000*2F" // Once every 10 seconds, 100 millihertz. +#define PMTK_SET_NMEA_UPDATE_200_MILLIHERTZ "$PMTK220,5000*1B" // Once every 5 seconds, 200 millihertz. #define PMTK_SET_NMEA_UPDATE_1HZ "$PMTK220,1000*1F" #define PMTK_SET_NMEA_UPDATE_5HZ "$PMTK220,200*2C" #define PMTK_SET_NMEA_UPDATE_10HZ "$PMTK220,100*2F" // Position fix update rate commands. #define PMTK_API_SET_FIX_CTL_100_MILLIHERTZ "$PMTK300,10000,0,0,0,0*2C" // Once every 10 seconds, 100 millihertz. +#define PMTK_API_SET_FIX_CTL_200_MILLIHERTZ "$PMTK300,5000,0,0,0,0*18" // Once every 5 seconds, 200 millihertz. #define PMTK_API_SET_FIX_CTL_1HZ "$PMTK300,1000,0,0,0,0*1C" #define PMTK_API_SET_FIX_CTL_5HZ "$PMTK300,200,0,0,0,0*2F" // Can't fix position faster than 5 times a second!