Skip to content

Commit

Permalink
- fixed seed init.
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokawa committed Jan 9, 2025
1 parent 0ac09be commit 2d11c8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/test_integ.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
from random import randint, seed, sample


def gen_data(mt, sys_t, svid_t, s=1):
def gen_data(mt, sys_t, svid_t):
""" generate random message data """
seed(s)
intr = Integrity()

if mt in (11, 12, 13): # SSR integrity messages
Expand Down Expand Up @@ -146,7 +145,8 @@ def read_rtcm(file_rtcm, intr, nep=1):

mt = msg_t[0]

seed(seed_)
prn_t = gen_sat_list(sys_t, prn_rng_t) # generate random sat list
intr = gen_data(mt, sys_t, prn_t, s=seed_) # generate random message data
intr = gen_data(mt, sys_t, prn_t) # generate random message data
write_rtcm(file_rtcm, msg_t, intr, nep)
cs = read_rtcm(file_rtcm, intr, nep)

0 comments on commit 2d11c8e

Please sign in to comment.