Commit graph

232 commits

Author SHA1 Message Date
Scott Shawcroft
1b80dea531
Merge pull request #54 from lesamouraipourpre/parse-gsa-and-gsv
Implement GSV and GSA parsing
2021-02-23 09:59:22 -08:00
James Carr
6dcfca0a25 Rename the _parse_[sentence] methods so that they don't have gp as part of their name.
eg. _parse_gpgll -> _parse_gll
2021-02-22 22:57:15 +00:00
James Carr
e5dcc01539 Merge branch 'parse-gsa-and-gsv' into bad-sentences 2021-02-22 22:53:35 +00:00
James Carr
13b6cc98d9 Run pylint on satellitefix example. 2021-02-18 18:52:47 +00:00
James Carr
6bf1132fd7 Reformat with pylint and black. 2021-02-18 18:21:01 +00:00
James Carr
93a8430a09 Reformat with black. 2021-02-18 13:30:00 +00:00
James Carr
84480ede5b Update the processing of GSV messages, to include a time reference
to when it was received.

The data stored in self.sats dictionary is:
  key is TTNN where
    TT = the talker name, eg. GL for GLONASS
    NN = the number of the satellite, currently a 1 or 2 digit number
  value is a 5 entry list (V0, V1, V2, V3, V4)
    V0 = satellite number TTNN as used for the key
    V1 = satellite elevation in degrees
    V2 = satellite azimuth in degrees
    V3 = satellite signal to noise ratio in dB, or None
    V4 = timestamp, time.monotonic(), of last GSV message
2021-02-18 12:43:31 +00:00
James Carr
8786f1fc97 Enable GSA (DOP and active satellites) parsing
Enable GSV (satellites in view) parsing.

Rewrote the GSA and GSV parsing to handle each satellite system
(talker) separately.
- self.sats now uses keys based upon the talker and satellite
  number, eg. GL67 for GLONASS #67, GP7 for GPS #7
- When the end message of a GSV sequence is received, eg. 3 of 3,
  all previous records in self.sats matching that talker are removed
  before adding the updated ones.
- self.sat_prns stores the last satellite IDs that were used for a
  fix and returned in the most recent GSA sentence. They will be
  from only one Satellite system and should have a record in
  self.sats .
2021-02-12 20:10:47 +00:00
James Carr
8629b4fe3e Add support for a wider range of talkers.
Reference: https://www.nmea.org/Assets/20190303%20nmea%200183%20talker%20identifier%20mnemonics.pdf
2021-02-11 23:19:49 +00:00
James Carr
c4c999a908 Enable the GSA parsing with _parse_gpgsa 2021-02-11 21:50:38 +00:00
James Carr
002f850842 Spelling. 2021-02-11 20:48:50 +00:00
James Carr
15015b54d9 Enable the GSV parsing with _parse_gpgsv 2021-02-11 20:43:49 +00:00
dherrada
e6d7ba9605 Hardcoded Black and REUSE versions
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-02-10 16:30:45 -05:00
foamyguy
f5959ebfbe
Merge pull request #50 from adafruit/REUSE
Ran pre-commit, added licenses
2021-01-14 19:35:48 -06:00
dherrada
376892e64c Ran pre-commit, added licenses 2021-01-14 13:35:19 -05:00
dherrada
b8a8c140b6 Added pre-commit-config file
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-01-11 16:33:44 -05:00
dherrada
e159e31084 Added pre-commit and SPDX copyright
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-01-11 16:01:31 -05:00
Limor "Ladyada" Fried
06ca26dff2
Merge pull request #49 from d-c-d/master
Fix typo s/# Tuen on/# Turn on/ in examples/gps_simpletest.py
2020-12-23 12:46:38 -05:00
David Dyck
6b43dbc41e
Fix typo s/# Tuen on/# Turn on/ in examples/gps_simpletest.py 2020-12-23 05:34:24 -08:00
dherrada
98c0c22041 Fixed discord invite link 2020-07-08 16:49:04 -04:00
dherrada
486e055d55
Revert version to right version 2020-06-11 13:56:52 -04:00
dherrada
a117badd4d
Merge pull request #47 from fvzeppelin/master
stability improvements
2020-06-08 17:35:24 -04:00
Frank von Zeppelin
6f4cd1c41b change version to 3.6.3 2020-06-08 22:08:55 +02:00
Frank von Zeppelin
10a4a02794 black'ed 2020-06-08 21:10:47 +02:00
Frank von Zeppelin
ed11af0270 fixes 2020-06-01 20:50:58 +02:00
dherrada
67b8715f2f
Merge pull request #45 from adafruit/dherrada-patch-2
Fix typo (Needs testing)
2020-05-07 16:30:35 -04:00
dherrada
c19da5b839
Fix typo 2020-05-07 16:10:21 -04:00
Dan Halbert
82ecc0c9d5
Merge pull request #42 from dherrada/i2c-fix
Changed busio.i2c to board.i2c
2020-05-06 12:06:05 -04:00
Kattni
ebd10f1ad6
Update board.I2C() 2020-04-29 16:54:36 -04:00
Kattni
026be6a6a0
Update board.I2C() 2020-04-29 16:54:14 -04:00
Kattni
1d628c323b
Fixing board.I2C() 2020-04-29 16:53:55 -04:00
Scott Shawcroft
04f9254522
Merge pull request #43 from adafruit/black-update
Black reformatting with Python 3 target.
2020-04-09 09:35:51 -07:00
Kattni Rembor
8667df8f21 Black reformatting with Python 3 target. 2020-04-08 15:28:43 -04:00
sommersoft
368be93dc4 build.yml: add black formatting check
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-04-07 16:11:24 -05:00
dherrada
157fd77ca9 Changed busio.i2c to board.i2c 2020-03-27 14:05:46 -04:00
Kattni
b1752a6006
Merge pull request #41 from adafruit/pylint-update
Ran black, updated to pylint 2.x
2020-03-17 13:52:25 -04:00
dherrada
7a53465688 Ran black, updated to pylint 2.x 2020-03-16 14:57:40 -04:00
sommersoft
6368ff37a7 update code of coduct: discord moderation contact section
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-03-15 18:26:57 -05:00
Kattni
c768fe5f37
Merge pull request #40 from sommersoft/patch_coc
Update Code of Conduct
2020-03-13 15:40:34 -04:00
sommersoft
2c16e39fb0 update code of conduct 2020-03-13 13:38:36 -05:00
sommersoft
65847e345e update pylintrc for black
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-03-08 19:06:31 -05:00
sommersoft
8e9210d8f7 build.yml: move pylint, black, and Sphinx installs to each repo; add description to 'actions-ci/install.sh'
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-03-05 10:05:29 -06:00
sommersoft
c3d93aced1 update pylint examples directive
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-01-14 17:15:14 -06:00
Limor "Ladyada" Fried
fc00862525
Merge pull request #38 from adafruit/dherrada-patch-1
Moved repository from Travis to GitHub Actions
2020-01-04 21:49:14 -05:00
dherrada
f1543e4ff2 Moved repository from Travis to GitHub Actions 2020-01-04 14:18:42 -05:00
Kattni
4f89b496ab
Merge pull request #37 from kattni/setup-py-update
Adding install reqs to setup.py
2019-11-19 08:40:51 -05:00
Kattni Rembor
1252b8f555 Adding install reqs to setup.py 2019-11-19 08:37:45 -05:00
Limor "Ladyada" Fried
f8de4c013f
Merge pull request #36 from ladyada/master
Add I2C support and various example fixes
2019-11-16 13:53:09 -05:00
Lady Ada
44cef8e048 nl 2019-11-16 11:58:25 -05:00
Lady Ada
ae45c83442 change name to be specific about the i2c protocol 2019-11-16 11:55:07 -05:00