Skip to content

Commit 0816d6b

Browse files
committed
- update udi.
1 parent c66ddda commit 0816d6b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cssrlib/cssr_bds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def decode_head(self, msg, i, st=-1):
107107
if self.week >= 0:
108108
self.time = bdt2gpst(bdt2time(self.week, self.tow))
109109

110-
head = {'uint': 0, 'mi': 0, 'iodssr': iodssr}
110+
head = {'udi': 0, 'mi': 0, 'iodssr': iodssr}
111111
return head, i
112112

113113
def add_gnss(self, mask, blen, gnss):

src/cssrlib/cssr_has.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ def decode_head(self, msg, i, st=-1):
6161
""" decode header part of HAS messages """
6262

6363
if st == sCSSR.MASK:
64-
ui = 0
64+
udi = 0
6565
else:
66-
ui = bs.unpack_from('u4', msg, i)[0]
66+
udi = bs.unpack_from('u4', msg, i)[0]
6767
i += 4
6868

6969
if self.tow0 >= 0:
7070
self.tow = self.tow0+self.toh
7171
if self.week >= 0:
7272
self.time = gpst2time(self.week, self.tow)
7373

74-
head = {'uint': ui, 'mi': 0, 'iodssr': self.iodssr}
74+
head = {'udi': udi, 'mi': 0, 'iodssr': self.iodssr}
7575
return head, i
7676

7777
def decode_cssr(self, msg, i=0):

0 commit comments

Comments
 (0)