Skip to content

Commit fe7767f

Browse files
committed
- fixed file length
1 parent b0c59d9 commit fe7767f

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

samples/test_integ.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def decode_rtcm(msg, intr=None, nep=1, logfile=None, maxlen=1024,
115115
for ne in range(nep):
116116

117117
# loop for RTCM
118-
while k < maxlen-1024:
118+
while k < maxlen:
119119
stat = cs.sync(msg, k)
120120
if stat is False:
121121
k += 1
@@ -200,17 +200,23 @@ def read_rtcm(file_rtcm, intr, nep=1, logfile=None, mt_skip=None):
200200

201201
else: # decode using sample dataset (*.bin)
202202

203-
file_rtcm = ['MT54_9', 'MT54_10_DFi209=0',
204-
'MT54_10_DFi209=1', 'MT54_10_DFi209=2']
205-
weekref = 2403
203+
icase = 2
204+
205+
if icase == 1:
206+
207+
file_rtcm = ['MT54_9', 'MT54_10_DFi209=0',
208+
'MT54_10_DFi209=1', 'MT54_10_DFi209=2']
209+
weekref = 2403
206210

207211
#file_rtcm = ['RTCM134test_21012026']
208212

209213
# file_rtcm = ['sampledataMT03-04-05-06-07']
210-
file_rtcm = ['ssr/SSRTEST_20260206_CORR',
211-
'ssr/ROVRMSG',
212-
'ssr/ROMAMSG']
213-
weekref = 2404
214+
215+
elif icase == 2:
216+
file_rtcm = ['ssr/SSRTEST_20260206_CORR',
217+
'ssr/ROVRMSG',
218+
'ssr/ROMAMSG']
219+
weekref = 2404
214220

215221
# msg = read_asc(file_asc)
216222
for f in file_rtcm:

0 commit comments

Comments
 (0)