Skip to content

Commit

Permalink
Merge pull request #103 from semuconsulting/RC-1.1.7
Browse files Browse the repository at this point in the history
Rc 1.1.7
  • Loading branch information
semuadmin authored Nov 9, 2024
2 parents db2f13f + 3982962 commit 7ecbcf5
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"python.defaultInterpreterPath": "python3",
"modulename": "${workspaceFolderBasename}",
"distname": "${workspaceFolderBasename}",
"moduleversion": "1.1.6"
"moduleversion": "1.1.7"
}
7 changes: 7 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# pygnssutils Release Notes

### RELEASE 1.1.7

ENHANCEMENTS:

1. gnssntripclient will now tolerate an NTRIP 1.0 response to an NTRIP 2.0 request if the caster only supports NTRIP 1.0, or vice versa.
1. gnssstreamer now supports both NTRIP 1.0 and NTRIP 2.0 clients via the `-rtkntripversion` flag (previously it assumed NTRIP 2.0).

### RELEASE 1.1.6

FIXES:
Expand Down
2 changes: 1 addition & 1 deletion 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.1.6"
version = "1.1.7"
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion src/pygnssutils/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
:license: BSD 3-Clause
"""

__version__ = "1.1.6"
__version__ = "1.1.7"
11 changes: 4 additions & 7 deletions src/pygnssutils/gnssntripclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
HTTPCODES,
MAXPORT,
NOGGA,
NTRIP1,
NTRIP2,
NTRIP_EVENT,
OUTPORT_NTRIP,
Expand Down Expand Up @@ -893,8 +892,8 @@ def is_gnssdata(self) -> bool:
:rtype: bool
"""

return (self._ntrip_version == NTRIP2 and self.content_type == "gnss/data") or (
self._ntrip_version == NTRIP1 and self.status["protocol"].lower() == "icy"
return (
self.content_type == "gnss/data" or self.status["protocol"].upper() == "ICY"
)

@property
Expand All @@ -907,10 +906,8 @@ def is_sourcetable(self) -> bool:
"""

return (
self._ntrip_version == NTRIP2 and self.content_type == "gnss/sourcetable"
) or (
self._ntrip_version == NTRIP1
and self.status["protocol"].lower() == "sourcetable"
self.content_type == "gnss/sourcetable"
or self.status["protocol"].upper() == "SOURCETABLE"
)

@property
Expand Down
8 changes: 8 additions & 0 deletions src/pygnssutils/gnssstreamer_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def _setup_input_ntrip(app: object, datatype: str, **kwargs) -> object:
mountpoint=path,
ntripuser=kwargs.get("rtkuser", "anon"),
ntrippassword=kwargs.get("rtkpassword", "password"),
version=kwargs.get("rtkntripversion", "2.0"),
ggamode=0,
ggainterval=kwargs.get("rtkggaint", -1),
datatype=datatype,
Expand Down Expand Up @@ -583,6 +584,13 @@ def main():
help="Password for RTK service (if --cliinput = 1, 2 or 3).",
default="password",
)
ap.add_argument(
"--rtkntripversion",
required=False,
help="NTRIP version (if --cliinput = 1)",
choices=["1.0", "2.0"],
default="2.0",
)
ap.add_argument(
"--rtkggaint",
required=False,
Expand Down

0 comments on commit 7ecbcf5

Please sign in to comment.