Skip to content

Commit a085e41

Browse files
authored
Merge pull request #187 from semuconsulting/RC-1.2.54
Rc 1.2.54
2 parents 43e9a9d + d13518f commit a085e41

File tree

7 files changed

+42
-7
lines changed

7 files changed

+42
-7
lines changed

RELEASE_NOTES.md

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

3+
### RELEASE 1.2.54
4+
5+
FIXES:
6+
7+
1. Fix SEC-SIG v2 payload definition (repeating group omitted) - Fixes #186.
8+
9+
CHANGES:
10+
11+
1. Minor changes to `dop2str()` helper method.
12+
1. Minimum pyrtcm version updated to 1.1.8 (includes some exception handling enhancements).
13+
314
### RELEASE 1.2.53
415

516
CHANGES:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232
"Topic :: Scientific/Engineering :: GIS",
3333
]
3434

35-
dependencies = ["pynmeagps >= 1.0.50", "pyrtcm >= 1.1.7"]
35+
dependencies = ["pynmeagps >= 1.0.50", "pyrtcm >= 1.1.8"]
3636

3737
[project.urls]
3838
homepage = "https://github.com/semuconsulting/pyubx2"

src/pyubx2/_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.2.53"
11+
__version__ = "1.2.54"

src/pyubx2/ubxhelpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ def dop2str(dop: float) -> str:
192192
193193
"""
194194

195-
if dop == 1:
195+
if dop == 0:
196+
dops = "N/A"
197+
elif dop <= 1:
196198
dops = "Ideal"
197199
elif dop <= 2:
198200
dops = "Excellent"

src/pyubx2/ubxtypes_get.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3544,6 +3544,18 @@
35443544
),
35453545
"reserved0": U1,
35463546
"jamNumCentFreqs": U1,
3547+
"group": (
3548+
"jamNumCentFreqs",
3549+
{
3550+
"jamStateCentFreq": (
3551+
X4,
3552+
{
3553+
"centFreq": U23,
3554+
"jammed": U1,
3555+
},
3556+
),
3557+
},
3558+
),
35473559
},
35483560
"SEC-SIGLOG": {
35493561
"version": U1, # 0x00

tests/test_static.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def testUBX2Bytes(self):
152152

153153
def testKeyfromVal(self):
154154
res = key_from_val(UBX_CLASSES, "MON")
155-
self.assertEqual(res, (b"\x0A"))
155+
self.assertEqual(res, (b"\x0a"))
156156

157157
def testCalcChecksum(self):
158158
res = calc_checksum(b"\x06\x01\x02\x00\xf0\x05")
@@ -198,9 +198,19 @@ def testgps2str(self):
198198
self.assertEqual(res, fixs[i])
199199

200200
def testdop2str(self):
201-
dops = ["Ideal", "Excellent", "Good", "Moderate", "Fair", "Poor"]
201+
dops = [
202+
"N/A",
203+
"Ideal",
204+
"Ideal",
205+
"Excellent",
206+
"Excellent",
207+
"Good",
208+
"Moderate",
209+
"Fair",
210+
"Poor",
211+
]
202212
i = 0
203-
for dop in (1, 2, 5, 10, 20, 30):
213+
for dop in (0, 0.9, 1, 1.4, 2, 5, 10, 20, 30):
204214
res = dop2str(dop)
205215
self.assertEqual(res, dops[i])
206216
i += 1

tests/test_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def testSEC(
287287
EXPECTED_RESULTS = (
288288
"<UBX(SEC-SIGLOG, version=1, numEvents=0, reserved0=437050933248)>",
289289
"<UBX(SEC-OSNMA, version=3, headerAuthStatus=0, nmaStatus=0, chainInForce=0, CPKS=0, osnmaEnabled=0, numSVs=0, nmaHeaderUpdate=0, timSyncEnabled=0, timSyncStatus=0, timSyncReqDiff=0, reserved0=1, dsmAuthenticationStatus=0, hashFunction=0, macFunction=0, pubKeyId=0, macLookupTable=0, keySize=0, macSize=0, fromNVS=0, teslaKeyAuthStatus=6, wnSf=2132, towSf=203, chainId=0, authSVs=0, authNumTim=16, timingAuthResult=0, macAdkdType=0, pubKeySrc=0, merkleRootSrc=0, merkleRootVal=0, futureMerkleRootSrc=0, futureMerkleRootVal=0, pubKeyVal=0, futurePubKeyVal=0, futurePubKeySrc=0, futurePubKeyId=0)>",
290-
"<UBX(SEC-SIG, version=2, jamDetEnabled=1, jammingState=1, spfDetEnabled=1, spoofingState=1, reserved0=0, jamNumCentFreqs=6)>",
290+
"<UBX(SEC-SIG, version=2, jamDetEnabled=1, jammingState=1, spfDetEnabled=1, spoofingState=1, reserved0=0, jamNumCentFreqs=6, centFreq_01=1575420, jammed_01=0, centFreq_02=1561098, jammed_02=0, centFreq_03=1602000, jammed_03=0, centFreq_04=1227600, jammed_04=0, centFreq_05=1207140, jammed_05=0, centFreq_06=1246000, jammed_06=0)>",
291291
"<UBX(SEC-SIGLOG, version=1, numEvents=0, reserved0=437116469248)>",
292292
"<UBX(SEC-OSNMA, version=3, headerAuthStatus=0, nmaStatus=0, chainInForce=0, CPKS=0, osnmaEnabled=0, numSVs=0, nmaHeaderUpdate=0, timSyncEnabled=0, timSyncStatus=0, timSyncReqDiff=0, reserved0=1, dsmAuthenticationStatus=0, hashFunction=0, macFunction=0, pubKeyId=0, macLookupTable=0, keySize=0, macSize=0, fromNVS=0, teslaKeyAuthStatus=1, wnSf=2254, towSf=203, chainId=0, authSVs=0, authNumTim=16, timingAuthResult=0, macAdkdType=0, pubKeySrc=0, merkleRootSrc=0, merkleRootVal=0, futureMerkleRootSrc=0, futureMerkleRootVal=0, pubKeyVal=0, futurePubKeyVal=0, futurePubKeySrc=0, futurePubKeyId=0)>",
293293
"<UBX(SEC-SIGLOG, version=1, numEvents=0, reserved0=437182005248)>",

0 commit comments

Comments
 (0)