Skip to content

Commit

Permalink
Merge pull request #56 from semuconsulting/RC-1.0.19
Browse files Browse the repository at this point in the history
Rc 1.0.19
  • Loading branch information
semudev2 committed Feb 20, 2024
2 parents 9955b17 + ab71b83 commit ae893b8
Show file tree
Hide file tree
Showing 11 changed files with 807 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"editor.formatOnSave": true,
"modulename": "${workspaceFolderBasename}",
"distname": "${workspaceFolderBasename}",
"moduleversion": "1.0.18"
"moduleversion": "1.0.19"
}
28 changes: 0 additions & 28 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,6 @@
],
"problemMatcher": []
},
{
"label": "Install Deploy Dependencies",
"type": "process",
"command": "${config:python.defaultInterpreterPath}",
"args": [
"-m",
"pip",
"install",
"--upgrade",
".[deploy]"
],
"problemMatcher": []
},
{
"label": "Install Test Dependencies",
"type": "process",
"command": "${config:python.defaultInterpreterPath}",
"args": [
"-m",
"pip",
"install",
"--upgrade",
".[test]"
],
"problemMatcher": []
},
{
"label": "Clean",
"type": "shell",
Expand Down Expand Up @@ -219,8 +193,6 @@
"dependsOrder": "sequence",
"dependsOn": [
"Clean",
"Install Deploy Dependencies",
"Install Test Dependencies",
"Install Dependencies",
"Security",
"Sort Imports",
Expand Down
12 changes: 12 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# pygnssutils Release Notes

### RELEASE CANDIDATE 1.0.19

CHANGES:

1. Add support for paho-mqtt v2.0.0.
1. Update min pyubx2 version to 1.2.38.
1. Add support for pyubx2 SETPOLL msgmode (auto-detect input message mode SET or POLL)

ENHANCEMENTS:

1. Add experimental UBX Simulator.

### RELEASE 1.0.18

CHANGES:
Expand Down
8 changes: 8 additions & 0 deletions docs/pygnssutils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ pygnssutils.ubxsetrate module
:undoc-members:
:show-inheritance:

pygnssutils.ubxsimulator module
-------------------------------

.. automodule:: pygnssutils.ubxsimulator
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

Expand Down
260 changes: 260 additions & 0 deletions examples/ubxsimulator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
{
"interval": 1,
"timeout": 3,
"logfile": "/home/myuser/ubxsimulator.log",
"simVector": 1,
"global": {
"lat": 52.474715,
"lon": 13.403288,
"alt": 50.034,
"height": 47494,
"sep": 2.54,
"hMSL": 50034,
"NS": "N",
"EW": "E",
"spd": 26.0693,
"cog": 125,
"gSpeed": 13411,
"headMot": 125
},
"ubxmessages": [
{
"msgCls": 1,
"msgId": 7,
"rate": 1,
"attrs": {
"validDate": 1,
"validTime": 1,
"validMag": 1,
"fixType": 3,
"numSV": 12,
"gnssFixOk": 1,
"pDOP": 0.843,
"hAcc": 585,
"vAcc": 543
}
},
{
"msgCls": 1,
"msgId": 4,
"rate": 1,
"attrs": {
"gDOP": 0.45,
"pDOP": 0.356,
"tDOP": 0.3864,
"vDOP": 0.98733,
"hDOP": 0.96763,
"nDOP": 0.9873476,
"eDOP": 0.834
}
},
{
"msgCls": 1,
"msgId": 53,
"rate": 4,
"attrs": {
"version": 1,
"numSvs": 13,
"reserved0": 0,
"gnssId_01": 0,
"svId_01": 4,
"cno_01": 0,
"elev_01": 16,
"azim_01": 302,
"prRes_01": 0.0,
"qualityInd_01": 1,
"svUsed_01": 0,
"health_01": 1,
"diffCorr_01": 0,
"smoothed_01": 0,
"orbitSource_01": 2,
"ephAvail_01": 0,
"almAvail_01": 1,
"gnssId_02": 0,
"svId_02": 5,
"cno_02": 48,
"elev_02": 15,
"azim_02": 73,
"prRes_02": 0.0,
"qualityInd_02": 4,
"svUsed_02": 0,
"health_02": 1,
"diffCorr_02": 0,
"smoothed_02": 0,
"orbitSource_02": 2,
"ephAvail_02": 0,
"almAvail_02": 1,
"gnssId_03": 0,
"svId_03": 14,
"cno_03": 0,
"elev_03": -91,
"azim_03": 0,
"prRes_03": 0.0,
"qualityInd_03": 1,
"svUsed_03": 0,
"health_03": 1,
"diffCorr_03": 0,
"smoothed_03": 0,
"orbitSource_03": 0,
"gnssId_04": 0,
"svId_04": 18,
"cno_04": 50,
"elev_04": -91,
"azim_04": 0,
"prRes_04": 0.0,
"qualityInd_04": 4,
"svUsed_04": 0,
"health_04": 1,
"diffCorr_04": 0,
"smoothed_04": 0,
"orbitSource_04": 0,
"gnssId_05": 0,
"svId_05": 25,
"cno_05": 0,
"elev_05": 19,
"azim_05": 116,
"prRes_05": 0.0,
"qualityInd_05": 1,
"svUsed_05": 0,
"health_05": 1,
"diffCorr_05": 0,
"smoothed_05": 0,
"orbitSource_05": 1,
"ephAvail_05": 1,
"almAvail_05": 1,
"gnssId_06": 0,
"svId_06": 26,
"cno_06": 45,
"elev_06": 61,
"azim_06": 285,
"prRes_06": 3.5,
"qualityInd_06": 7,
"svUsed_06": 1,
"health_06": 1,
"diffCorr_06": 0,
"smoothed_06": 0,
"orbitSource_06": 1,
"ephAvail_06": 1,
"almAvail_06": 1,
"gnssId_07": 0,
"svId_07": 27,
"cno_07": 0,
"elev_07": 4,
"azim_07": 245,
"prRes_07": 0.0,
"qualityInd_07": 1,
"svUsed_07": 0,
"health_07": 1,
"diffCorr_07": 0,
"smoothed_07": 0,
"orbitSource_07": 2,
"ephAvail_07": 0,
"almAvail_07": 1,
"gnssId_08": 0,
"svId_08": 28,
"cno_08": 52,
"elev_08": 39,
"azim_08": 196,
"prRes_08": 2.1,
"qualityInd_08": 7,
"svUsed_08": 1,
"health_08": 1,
"diffCorr_08": 0,
"smoothed_08": 0,
"orbitSource_08": 1,
"ephAvail_08": 1,
"almAvail_08": 1,
"gnssId_09": 0,
"svId_09": 29,
"cno_09": 43,
"elev_09": 56,
"azim_09": 67,
"prRes_09": 1.8,
"qualityInd_09": 7,
"svUsed_09": 1,
"health_09": 1,
"diffCorr_09": 0,
"smoothed_09": 0,
"orbitSource_09": 1,
"ephAvail_09": 1,
"almAvail_09": 1,
"gnssId_10": 0,
"svId_10": 31,
"cno_10": 54,
"elev_10": 55,
"azim_10": 230,
"prRes_10": 0.3,
"qualityInd_10": 7,
"svUsed_10": 1,
"health_10": 1,
"diffCorr_10": 0,
"smoothed_10": 0,
"orbitSource_10": 1,
"ephAvail_10": 1,
"gnssId_11": 2,
"svId_11": 120,
"cno_11": 0,
"elev_11": 28,
"azim_11": 196,
"prRes_11": 0.0,
"qualityInd_11": 1,
"svUsed_11": 0,
"health_11": 0,
"diffCorr_11": 0,
"smoothed_11": 0,
"orbitSource_11": 7,
"gnssId_12": 2,
"svId_12": 123,
"cno_12": 0,
"elev_12": 22,
"azim_12": 140,
"prRes_12": 0.0,
"qualityInd_12": 1,
"svUsed_12": 0,
"health_12": 0,
"diffCorr_12": 0,
"smoothed_12": 0,
"orbitSource_12": 7,
"gnssId_13": 2,
"svId_13": 136,
"cno_13": 0,
"elev_13": 29,
"azim_13": 171,
"prRes_13": 0.0,
"qualityInd_13": 1,
"svUsed_13": 0,
"health_13": 0,
"diffCorr_13": 0,
"smoothed_13": 0,
"orbitSource_13": 7
}
}
],
"nmeamessages": [
{
"talker": "GN",
"msgId": "GGA",
"rate": 1,
"attrs": {
"status": "A",
"posMode": "A",
"navStatus": "V",
"sepUnit": "M",
"altUnit": "M",
"quality": 2,
"numSV": 12,
"HDOP": 0.9873476
}
},
{
"talker": "GN",
"msgId": "RMC",
"rate": 1,
"attrs": {
"status": "A",
"posMode": "A",
"navStatus": "V"
}
}
]
}
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "pygnssutils"
authors = [{ name = "semuadmin", email = "[email protected]" }]
maintainers = [{ name = "semuadmin", email = "[email protected]" }]
description = "GNSS Command Line Utilities"
version = "1.0.18"
version = "1.0.19"
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -34,10 +34,10 @@ classifiers = [
]

dependencies = [
"paho-mqtt>=1.6.1",
"paho-mqtt>=1.6.0",
"pyserial>=3.5",
"pyspartn>=0.2.0",
"pyubx2>=1.2.37",
"pyubx2>=1.2.38",
]

[project.scripts]
Expand All @@ -48,6 +48,7 @@ gnssmqttclient = "pygnssutils.gnssmqttclient:main"
ubxsetrate = "pygnssutils.ubxsetrate:main"
ubxsave = "pygnssutils.ubxsave:main"
ubxload = "pygnssutils.ubxload:main"
ubxsimulator = "pygnssutils.ubxsimulator:main"

[project.urls]
homepage = "https://github.com/semuconsulting/pygnssutils"
Expand Down Expand Up @@ -77,7 +78,7 @@ profile = "black"

[tool.bandit]
exclude_dirs = ["docs", "examples", "tests"]
skips = ["B104", "B307"] # bind 0.0.0.0; use of eval
skips = ["B104", "B307", "B311"] # bind 0.0.0.0; use of eval, random gen

[tool.pylint]
jobs = 0
Expand All @@ -100,7 +101,7 @@ disable = """

[tool.pytest.ini_options]
minversion = "7.0"
addopts = "--cov --cov-report term-missing --cov-fail-under 35"
addopts = "--cov --cov-report html --cov-fail-under 35"
pythonpath = ["src"]

[tool.coverage.run]
Expand Down
1 change: 1 addition & 0 deletions src/pygnssutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
from pygnssutils.ubxload import UBXLoader
from pygnssutils.ubxsave import UBXSaver
from pygnssutils.ubxsetrate import UBXSetRate
from pygnssutils.ubxsimulator import UBXSimulator

version = __version__ # pylint: disable=invalid-name
Loading

0 comments on commit ae893b8

Please sign in to comment.