Skip to content

Commit fbd74bd

Browse files
committed
- fast ppp
1 parent 2761e63 commit fbd74bd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎samples/test_pppmdc.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def decode_msg(v, tow, prn_ref, l6_ch=0, prn_ref_ext=0, l6_ch_ext=0):
9797
print("ERROR: cannot open L6 message file {}!".format(file_stec))
9898
sys_exit(-1)
9999

100-
iono_opt = 2 if prn_ref_ext > 0 or (file_stec is not None) else 1
100+
iono_opt = 3 if prn_ref_ext > 0 or (file_stec is not None) else 1
101101

102102
rnx = rnxdec()
103103
nav = Nav()
@@ -185,15 +185,15 @@ def decode_msg(v, tow, prn_ref, l6_ch=0, prn_ref_ext=0, l6_ch_ext=0):
185185

186186
if file_stec is not None: # STEC read from file
187187
cs_.decode_l6msg(fc.read(250), 0)
188-
if cs_.sid == 1: # end of sub-frame
188+
if cs_.sid == 1 and cs_.buff_p is not None: # end of sub-frame
189189
cs.decode_cssr(bytes(cs_.buff_p), 0)
190190

191191
cs.inet = cs.find_grid_index(ecef2pos(nav.x[:3]))
192192

193193
# Call PPP module
194194
#
195195
if (cs.lc[0].cstat & 0xf) == 0xf:
196-
if iono_opt == 2: # STEC is available
196+
if iono_opt in (2, 3): # STEC is available
197197
mask_s = 1 << sc.STEC
198198
if cs.inet > 0 and \
199199
cs.lc[cs.inet].cstat & mask_s == mask_s:

0 commit comments

Comments
 (0)