Commit Graph

68 Commits

Author SHA1 Message Date
Rick Sellens 4a14547ede Improve NMEA sentence checking
Add check(), addChecksum(), tokenOnList(), and supporting variables. Modify parse() to use check() and test only on sentence name, e.g. GGA rather than $GPGGA. Uses strcmp() to eliminate the custom strStartsWith().
2020-01-08 11:04:21 -05:00
Rick Sellens ce333bf713 Move declarations to class private
Variables for buffering were global to the cpp file. Two instances would overwrite each other's buffers.
2019-12-29 12:10:39 -05:00
ladyada 99540e8404 fix missing def 2019-11-22 15:20:36 -05:00
Lady Ada 7bb6e004a6 add SPI support - tested with TitanX1. 2019-11-16 19:06:07 -05:00
Bas Rijniersce ebde856657 Added support for the GSA sentence 2019-10-31 14:05:02 -07:00
Limor "Ladyada" Fried b985f2ed1d
Merge pull request #100 from adafruit/i2c
Add support for 'uart over i2c' GPS modules
2019-10-13 22:14:52 -04:00
ladyada 70bea470db doxy new Print support 2019-10-13 21:32:50 -04:00
ladyada ceabac597f nice kleen output! 2019-10-13 20:15:13 -04:00
Rick Sellens 1f8c5a58d7 Change GPS time alignment
Detect time first character of NMEA sentence received and treat that as corresponding to GPS timestamp in the sentence. Still some latency, but less than using the end of the receipt.
2019-09-29 12:26:01 -04:00
Ladyada d213ccc4cf basic i2c interfacing, GPS now subclasses Print so we can treat it like a serial connection 2019-08-30 02:18:01 -04:00
Rick Sellens 547b611daf Changed time_t to uint32_t
forgot time_t isn't defined for UNO
2019-04-22 15:35:05 -04:00
sellensr e121bb53c8 Track when sentence received
Improve the time information by tracking from when a sentence is received, rather than when it is parsed. Track last valid Date, Time, and Fix separately.
2019-04-20 13:51:00 -04:00
sellensr 76a0384f71 parse() improvements
Split out separate functions to parse fragments of sentences for time, lat, lon, fix. No functional changes. Reduces repetition and makes parsing process more readable. Will make adding new sentences less cumbersome. The difference tracking gets a little wonky stretching across function boundaries.

Added timeSinceFix() to return seconds since a valid fix was received. Modified $GPGGA parsing to also set fix = true/false based on quality.

Added more output sentences to Adafruit_GPS.h to facilittate testing with different sentences.
2019-04-17 22:37:47 -04:00
Matt Goodrich 90f059091d
Merge pull request #87 from sellensr/master
Add 115200 bps and parse $GPGLL
2019-04-16 14:18:16 -04:00
Matt Goodrich 85195eeeb9 Merge pull request #47 from hunnybear/master
Adding a gga only constant
2019-04-16 13:44:57 -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
sellensr 77176c2afd #define for 115200 baud 2019-04-14 19:40:39 -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
ladyada e0beddd274 Merge branch 'master' of github.com:adafruit/Adafruit-GPS-Library 2017-08-01 22:55:59 -04:00
ladyada afb7ee79c8 add 22hz update 2017-08-01 22:55:52 -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
ladyada 614f4df905 allow uin32_t bauds https://github.com/adafruit/Adafruit_GPS/issues/42 2016-07-11 23:36:54 -04:00
Tyler Mark Good 152d55a5e4 adding gga only constant 2015-08-19 21:33:01 -05:00
Tyler Mark Good e4cd29ab47 adding gga only constant 2015-08-19 21:29:53 -05:00
Adnan RIHAN 0465ef1c52 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.
2014-12-25 15:48:57 +01: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
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
Tony DiCola 43b9093d35 Update Adafruit_GPS.h 2014-08-18 11:09:55 -07:00
Tony DiCola b1f0c6e5f8 Clarify 10hz logging rate instead of 100 mhz 2014-08-15 18:39:30 -07:00
Tony DiCola f72d2acb50 Merge pull request #30 from flybob/master
Ultimate GPS
2014-08-15 18:37:42 -07:00
Tony DiCola 240f1bbdea Add fixed point minute scaling back with correct floating point conversion. 2014-08-11 11:01:50 -07:00
Fltbob 1a8a9f46c4 Update Adafruit_GPS.h 2014-08-11 12:13:21 -04:00
Fltbob b6afc00502 Update Adafruit_GPS.h 2014-08-11 12:09:08 -04:00
Tony DiCola 11cb409ead Fix #22 by adding 1hz and 5hz position fix update commands. Update echo example to show command usage. 2014-08-07 12:00:36 -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
Tony DiCola 6cdde45623 Merge pull request #21 from djix123/master
Add support for stopping logging
2014-08-06 14:51:16 -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
orpheus88 6a51743f5a Update Adafruit_GPS.h
Fixed checksum to disable Antenna Messages.
2014-06-20 15:30:38 +02:00
driverblock cdcfd289ef fix bad commit 2014-06-08 16:36:39 -04:00
driverblock 2d220aab9c Due support 2014-06-08 15:46:05 -04:00
Jonathan Giles 54cbd80434 Merge commit '2a52767b76a5a9df15e26b83ea316b5116cc6fa6' 2014-05-04 10:08:09 -04:00
driverblock 2a52767b76 fix PGCMD_NOANTENNA checksum
PGCMD_NOANTENNA checksum was wrong.
2013-12-28 14:02:07 -05:00
Jonathan Giles f4dba8e4b0 Add support for stopping logging 2013-10-27 12:15:00 -04:00