Commit Graph

47 Commits

Author SHA1 Message Date
sellensr 44af8c9086 Index checksum explicitly on $ and *
parse() Improves slightly on https://github.com/adafruit/Adafruit_GPS/pull/86 by indexing on the position of the $ and the * in the string instead of the beginning and the end of the string.  Does not require sentence string have a particular termination, e.g. CRLF.
2019-04-16 19:49:01 -04:00
Rick Sellens b431f20491 update to strStartsWith()
strStartsWith(nmea, "$GPGLL") now used to identify the sentence.
2019-04-16 13:41:25 -04:00
Rick Sellens ff2c714d4d
Merge pull request #1 from adafruit/master
Update my fork from the adafruit repo
2019-04-16 13:00:42 -04:00
Rick Sellens 968e95344c Revert "parse checksum to *"
This reverts commit 0f867b508a.
2019-04-16 12:49:05 -04:00
Rick Sellens 37fed7f05d Revert "tidy lines and checksum"
This reverts commit 8bad5eacfb.
2019-04-16 12:48:02 -04:00
Matt Goodrich f8c5386402
Merge pull request #61 from pdoddster/master
Fail parser if no checksum
2019-04-16 10:18:02 -04:00
sellensr 8bad5eacfb tidy lines and checksum
Parse start of checksum as character after first $.
Don't include '\n' or '\r' in GPS lines read. Previous code was putting '\r' at the end of each line and '\n' at the start before the $, thus having to start the checksum calculation at the third character. This may break the spacing on some code that prints out the NMEA lines.
2019-04-15 13:50:37 -04:00
sellensr 0f867b508a parse checksum to *
Parse the NMEA checksum based on the location of the asterisk, rather than the end of the string. Avoids problems if line ends with other than CRLF.
2019-04-15 11:51:40 -04:00
sellensr 8e17fcc9a9 Add $GPGLL sentence to parsing
$GPGLL has fewer arguments in a different order. The $GPRMC code was directly copied and the order rearranged.
2019-04-14 20:25:59 -04:00
Sam Roberts f52a4d2939 Fix read() so NMEA sentences are properly CR-LF terminated 2019-04-09 19:57:35 -04:00
Matt Goodrich d7c9f848f6 Updated examples, split into HardwareSerial and SoftwareSerial; Removed NewSoftSerial 2019-03-14 14:22:28 -04:00
Matt Goodrich 8c064919ab Doxyfied; Added code of conduct; Updated README; Added travis.yml 2019-03-12 17:21:45 -04:00
driverblock 77fe348437 Add hardware serial locus erase example
Added GPS_HardwareSerial_LOCUS_Erase.
Increased timeout value on waitForSentence function
updated library version to 1.0.3
2017-08-02 11:24:18 -04:00
ladyada ea73a3a8f3 hardwareserial (non-interrupt) GPS LOCUS examplz 2017-08-01 23:27:56 -04:00
driverblock c12e424439 Add define to use Software Serial
Added a #define to enable software serial.  Comment it out to not
include software serial.  Forum user request for ability to eliminate
software serial.
https://forums.adafruit.com/viewtopic.php?f=51&t=103611#p519211
2016-09-25 10:26:05 -04:00
pdoddster 7fc1b4e15f Added else clause
If checksum wasn't there, parser was parsing anyways. If checksum is required we need to return false if not found.
2016-08-02 09:18:09 -07:00
ladyada 614f4df905 allow uin32_t bauds https://github.com/adafruit/Adafruit_GPS/issues/42 2016-07-11 23:36:54 -04:00
ladyada 69f4e8cff7 https://github.com/adafruit/Adafruit_GPS/issues/58
https://github.com/adafruit/Adafruit_GPS/issues/56
2016-07-11 23:34:17 -04:00
ladyada 461d908af8 checksum code really workin now
fixes https://github.com/adafruit/Adafruit-GPS-Library/issues/40
2015-11-30 00:01:35 -05:00
Tony DiCola eb4e66dcbe Merge branch 'master' of https://github.com/Jcps/Adafruit-GPS-Library into Jcps-master 2014-10-24 17:34:21 -07:00
Larry c85ca305f9 Fix warning about deprecated cast from string to char *. 2014-10-19 11:31:07 +13:00
Larry 4348639804 Fix warning about reaching end of non-void function. 2014-10-19 11:30:28 +13:00
Jack Sampson 3f4a1a5948 Addition of Google Maps friendly coordinates
Added a latitudeDegrees, which calculates the GPS position into only
degrees, which Google Maps uses.
2014-10-16 10:44:05 -04:00
driverblock 04fc848c26 fix parser when no fix
RMC and GGA sentences were no properly parsed when there was no fix.
They were assuming numeric values between commas, but you just get a
string of commas when there’s no fix. This was causing the RMC ate to
be parsed incorrectly.
2014-09-27 08:02:59 -04:00
driverblock e7a91195e5 Please don't eat the dollar sign
read() was eating the leading dollar sign on the double-buffer swap.
2014-09-15 14:27:53 -04:00
Tony DiCola 240f1bbdea Add fixed point minute scaling back with correct floating point conversion. 2014-08-11 11:01:50 -07:00
Tony DiCola 7ca1d78daa Remove scaling from minute calulcation.
Pull #13 added scaling of minute values by 50 / 3, but this seems to cause problems like minute values going over 60.  Removing this calculation to take the exact minute value given by the module.
2014-08-08 15:02:49 -07:00
Tony DiCola 4b2006754e Fix #14 by fixing compilation for Arduino Due, and updating due_parsing example text to clarify connections. 2014-08-07 13:08:27 -07:00
Tony DiCola 5523d30fed Move fixed point value to latitude_fixed and longitude_fixed members. 2014-08-07 02:04:24 -07:00
Tony DiCola 32e40234c8 Merge branch 'master' of https://github.com/koehn/Adafruit-GPS-Library into koehn-master 2014-08-07 01:16:23 -07:00
Tony DiCola 9378a3d1f3 Fix merge conflict with #18 2014-08-06 14:58:41 -07:00
Jonathan Giles fdd6f04c37 Merge commit '5f0415ee68876e1ef1a7b13f9d835a496475a39e'
* commit '5f0415ee68876e1ef1a7b13f9d835a496475a39e':
  Correcting name of download button
  Fixed Leo Locus examples
  fix bad commit
  Due support
  Add support for Arduino Due
  Add #include <SPI.h>
2014-07-12 19:31:01 -04:00
driverblock cdcfd289ef fix bad commit 2014-06-08 16:36:39 -04:00
driverblock bdf1b838a7 Merge branch 'master' of https://github.com/adafruit/Adafruit-GPS-Library
Conflicts:
	Adafruit_GPS.cpp
2014-06-08 15:49:16 -04:00
driverblock 2d220aab9c Due support 2014-06-08 15:46:05 -04:00
driverblock 1319d079bf Add support for Arduino Due
Conditional compilation for Arduino Due.
Due support is hardcoded for Serial1
Added due_parsing and due_shield_sdlog examples
2014-03-24 16:09:24 -04:00
Jonathan Giles f4dba8e4b0 Add support for stopping logging 2013-10-27 12:15:00 -04:00
Stephan Menzel 91d1657f31 use const char ptr instead of non-const in string literal parameters 2013-06-02 14:44:40 +02:00
Brad Koehn 7a3956fbac Made lat/long int32_t instead of floats for performance and precision 2013-02-25 21:02:50 -06:00
ladyada 195c351b1b added a little delay 2012-12-04 11:20:10 -05:00
Austin St. Aubin 80f869ce8a Added Standby and Wakeup fuctions for powering down and powering back up the GPS 2012-04-29 20:46:21 -05:00
Paint Your Dragon bd99b452fd Added hardware serial support, back compatible w/Arduino 0023 2012-04-27 13:49:18 -07:00
Ladyada 723d26da5f parsing LOCUS status 2012-03-28 14:14:32 -04:00
Ladyada b8ce3c6a4d Parsing works with RMC & GGA with a nice example as well 2012-03-28 12:20:38 -04:00
Ladyada ad4df7f289 pulled interrupt stuff to sketch 2012-03-27 18:20:41 -04:00
Ladyada b05dacafad Have to test parsing, but seems OK 2012-03-27 17:56:07 -04:00
Ladyada 05aefd5d84 woooo! 2012-03-26 12:57:23 -04:00