Commit Graph

212 Commits

Author SHA1 Message Date
Rick Sellens 7025f17c82 clang 2020-01-21 14:20:40 -05:00
Rick Sellens 35069cb40c trigger a new check run 2020-01-21 13:49:48 -05:00
Rick Sellens 15788bd2f0 let the float type be set from the compile command line 2020-01-21 12:34:35 -05:00
Rick Sellens af963a4846 clang 2020-01-19 20:25:14 -05:00
Rick Sellens 716315af97 single is not float
that's what happens when you rush
2020-01-19 20:16:24 -05:00
Rick Sellens edc7146730 Update NMEA_data.h 2020-01-19 19:48:00 -05:00
Rick Sellens 7d806715fc this one too 2020-01-19 09:52:28 -05:00
Rick Sellens 3a823f80e0 this comment has a trailing space 2020-01-19 09:37:51 -05:00
Rick Sellens 8c3bdfd0ca clang 2020-01-19 09:15:18 -05:00
Rick Sellens c006654469 clang hates trailing white space 2020-01-19 08:56:06 -05:00
Rick Sellens 0051f37600 change from float to nmea_float_t
Not sure whether to make it float or double by default

/*************************************************************************
  doubles and floats are identical on AVR processors like the UNO where space
  is tight. doubles avoid the roundoff errors that led to the fixed point mods
  in https://github.com/adafruit/Adafruit-GPS-Library/pull/13, provided the
  processor supports actual doubles like the SAMD series with more storage. The
  total penalty for going all double is under a few hundred bytes / instance or
  0 bytes / instance on an UNO. This typedef allows a switch to lower precision
  to save some storage if needed. A float carries 23 bits of fractional
  resolution, giving a resolution of at least 9 significant digits, thus 6
  significant digits in the decimal place of an angular value like latitude, and
  thus a resolution on earth of at least 110 mm. That's closer than GPS will
  hit, and closer than needed for navigation, so floats can be used to save a
  little storage.
 **************************************************************************/
typedef double
    nmea_float_t; ///< the type of variables to use for floating point
2020-01-19 08:14:02 -05:00
Rick Sellens 8739f08ca6 move resetSentTime out of extensions
potentially useful elsewhere, and small
2020-01-19 08:06:26 -05:00
Rick Sellens 4bfbd03b90 move PMTK defines to their own .h 2020-01-19 07:54:34 -05:00
Rick Sellens aa56da31e7 Add NMEA_data.h
typedefs to support tracking more NMEA data besides position.
2020-01-19 07:48:41 -05:00
Rick Sellens d1c93e04a7 Move parse and build to their own source files 2020-01-19 07:43:48 -05:00
Rick Sellens 30280c5de2 Moved source files to source, no other changes 2020-01-19 07:31:56 -05:00
Matt Goodrich 36d608b1cb
Merge pull request #110 from sellensr/master
Add build() extension
2020-01-18 16:53:14 -05:00
Rick Sellens 2c2272e3fd
Delete .DS_Store 2020-01-18 16:42:18 -05:00
Rick Sellens 88ea487b3e Create .gitignore 2020-01-18 16:41:28 -05:00
Rick Sellens 2a34d48836 another space 2020-01-18 11:09:42 -05:00
Rick Sellens b982d8948e more clang 2020-01-18 10:43:35 -05:00
Rick Sellens c8d4e037e7 clanged files 2020-01-18 10:23:14 -05:00
Rick Sellens a41cbce062 Add build() example to GPS_Hardware_Serial_Timing.ino 2020-01-18 09:18:13 -05:00
Rick Sellens f02d93b749 Redo Pull Request 108
Created new fork in hopes of making things mergeable
2020-01-18 09:07:15 -05:00
Matt Goodrich 309b27c464
Merge pull request #109 from adafruit/actions
Add Actions and remove travis
2020-01-17 21:33:03 -05:00
ladyada e4eb78f41c clangify 2020-01-17 16:18:09 -05:00
ladyada 418d265a74 fix more skips 2020-01-17 16:11:19 -05:00
ladyada 2343743068 fix skips for sdlog 2020-01-17 16:09:47 -05:00
ladyada 2e9fdfd1fa add SD dep and only-skips 2020-01-17 15:58:18 -05:00
ladyada bac1f33457 add actions, remove travis 2020-01-17 15:46:18 -05:00
siddacious a56e139fbf
Update library.properties 2020-01-16 13:47:18 -08:00
Matt Goodrich b17c3fd5e5
Merge pull request #107 from sellensr/master
Improve NMEA sentence checking
2020-01-14 09:57:04 -05:00
siddacious 3e02fa11fd
Update library.properties 2020-01-08 11:18:10 -08:00
Rick Sellens 3e5946617f more Doxygen 2020-01-08 13:28:38 -05:00
Rick Sellens 11c02f691b Doxygen comments added 2020-01-08 13:08:10 -05:00
Rick Sellens eec5282c19 Reinsert strStartsWith() needed elsewhere 2020-01-08 12:05:07 -05:00
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
Matt Goodrich 5eab9c7e21
Merge pull request #105 from sellensr/master
Move declarations to class private
2020-01-07 15:11:02 -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
siddacious 60879aadd2
Bumping 2019-11-27 11:14:13 -08:00
ladyada 1d2039d001 use i2c pointer 2019-11-23 14:31:33 -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
Matt Goodrich dcc7dcc76f
Add support for GSA sentence 2019-11-04 18:07:57 -05:00
Matt Goodrich 83db2e0e61
Merge pull request #101 from basrijn/master
Added support for the GSA sentence
2019-11-04 17:44:35 -05:00
Bas Rijniersce 8d0224c6c9 Removed the accidental code duplication for 2019-11-02 17:46:55 -07:00
Bas Rijniersce ebde856657 Added support for the GSA sentence 2019-10-31 14:05:02 -07:00
ladyada 5c2ddda5c2 add i2c and Stream support 2019-10-20 16:01:34 -04: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