Skip to content

Commit 7ecbcf5

Browse files
authored
Merge pull request #103 from semuconsulting/RC-1.1.7
Rc 1.1.7
2 parents db2f13f + 3982962 commit 7ecbcf5

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"python.defaultInterpreterPath": "python3",
66
"modulename": "${workspaceFolderBasename}",
77
"distname": "${workspaceFolderBasename}",
8-
"moduleversion": "1.1.6"
8+
"moduleversion": "1.1.7"
99
}

RELEASE_NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# pygnssutils Release Notes
22

3+
### RELEASE 1.1.7
4+
5+
ENHANCEMENTS:
6+
7+
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.
8+
1. gnssstreamer now supports both NTRIP 1.0 and NTRIP 2.0 clients via the `-rtkntripversion` flag (previously it assumed NTRIP 2.0).
9+
310
### RELEASE 1.1.6
411

512
FIXES:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "pygnssutils"
77
authors = [{ name = "semuadmin", email = "[email protected]" }]
88
maintainers = [{ name = "semuadmin", email = "[email protected]" }]
99
description = "GNSS Command Line Utilities"
10-
version = "1.1.6"
10+
version = "1.1.7"
1111
license = { file = "LICENSE" }
1212
readme = "README.md"
1313
requires-python = ">=3.9"

src/pygnssutils/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
:license: BSD 3-Clause
99
"""
1010

11-
__version__ = "1.1.6"
11+
__version__ = "1.1.7"

src/pygnssutils/gnssntripclient.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
HTTPCODES,
6161
MAXPORT,
6262
NOGGA,
63-
NTRIP1,
6463
NTRIP2,
6564
NTRIP_EVENT,
6665
OUTPORT_NTRIP,
@@ -893,8 +892,8 @@ def is_gnssdata(self) -> bool:
893892
:rtype: bool
894893
"""
895894

896-
return (self._ntrip_version == NTRIP2 and self.content_type == "gnss/data") or (
897-
self._ntrip_version == NTRIP1 and self.status["protocol"].lower() == "icy"
895+
return (
896+
self.content_type == "gnss/data" or self.status["protocol"].upper() == "ICY"
898897
)
899898

900899
@property
@@ -907,10 +906,8 @@ def is_sourcetable(self) -> bool:
907906
"""
908907

909908
return (
910-
self._ntrip_version == NTRIP2 and self.content_type == "gnss/sourcetable"
911-
) or (
912-
self._ntrip_version == NTRIP1
913-
and self.status["protocol"].lower() == "sourcetable"
909+
self.content_type == "gnss/sourcetable"
910+
or self.status["protocol"].upper() == "SOURCETABLE"
914911
)
915912

916913
@property

src/pygnssutils/gnssstreamer_cli.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def _setup_input_ntrip(app: object, datatype: str, **kwargs) -> object:
138138
mountpoint=path,
139139
ntripuser=kwargs.get("rtkuser", "anon"),
140140
ntrippassword=kwargs.get("rtkpassword", "password"),
141+
version=kwargs.get("rtkntripversion", "2.0"),
141142
ggamode=0,
142143
ggainterval=kwargs.get("rtkggaint", -1),
143144
datatype=datatype,
@@ -583,6 +584,13 @@ def main():
583584
help="Password for RTK service (if --cliinput = 1, 2 or 3).",
584585
default="password",
585586
)
587+
ap.add_argument(
588+
"--rtkntripversion",
589+
required=False,
590+
help="NTRIP version (if --cliinput = 1)",
591+
choices=["1.0", "2.0"],
592+
default="2.0",
593+
)
586594
ap.add_argument(
587595
"--rtkggaint",
588596
required=False,

0 commit comments

Comments
 (0)