2828
2929def run_tracking_loop (prn , signal , dopp , phase , file_name , file_format ,
3030 freq_profile , skip_val , norun = False , l2chandover = False ,
31- pipelining = None , short_long_cycles = None ):
31+ short_long_cycles = False ):
3232 parameters = [
3333 'tracking_loop' ,
3434 '-P' , str (prn ),
@@ -41,10 +41,8 @@ def run_tracking_loop(prn, signal, dopp, phase, file_name, file_format,
4141 '--skip-samples' , str (skip_val )
4242 ]
4343
44- if pipelining :
45- parameters += ['--pipelining' , str (pipelining )]
46- elif short_long_cycles :
47- parameters += ['--short-long-cycles' , str (short_long_cycles )]
44+ if short_long_cycles :
45+ parameters += ['--short-long-cycles' ]
4846
4947 if norun :
5048 parameters .append ('--no-run' )
@@ -78,34 +76,33 @@ def get_tr_loop_res_file_name(sample_file, prn, band):
7876def run_track_test (samples_file , expected_lock_ratio , init_doppler ,
7977 init_code_phase , prn , file_format , freq_profile ,
8078 skip_samples = None , skip_ms = None ,
81- pipelining = None , short_long_cycles = None ):
79+ short_long_cycles = False ):
8280
8381 bands = fileformat_to_bands (file_format )
8482
8583 skip_param , skip_val = get_skip_params (skip_samples , skip_ms )
8684
8785 run_peregrine (samples_file , file_format , freq_profile ,
8886 skip_param , skip_val , skip_tracking = False ,
89- pipelining = pipelining , short_long_cycles = short_long_cycles )
87+ short_long_cycles = short_long_cycles )
9088
9189 for band in bands :
9290 dopp_ratio = 1
9391 if band == "l2c" :
9492 dopp_ratio = l2 / l1
9593 run_tracking_loop (prn , band , init_doppler * dopp_ratio , init_code_phase ,
9694 samples_file , file_format , freq_profile , 0 ,
97- pipelining = pipelining ,
9895 short_long_cycles = short_long_cycles )
9996
10097 #code_phase = propagate_code_phase(init_code_phase,
10198 #get_sampling_freq(freq_profile),
10299 #skip_param, skip_val)
103100
104101 check_per_track_results (expected_lock_ratio , samples_file , prn , bands ,
105- pipelining , short_long_cycles )
102+ short_long_cycles )
106103
107104 check_tr_loop_track (expected_lock_ratio , samples_file , prn , bands ,
108- pipelining , short_long_cycles )
105+ short_long_cycles )
109106
110107 # Clean-up.
111108 os .remove (get_acq_result_file_name (samples_file ))
@@ -115,7 +112,7 @@ def run_track_test(samples_file, expected_lock_ratio, init_doppler,
115112
116113
117114def check_per_track_results (expected_lock_ratio , filename , prn , bands ,
118- pipelining , short_long_cycles ):
115+ short_long_cycles ):
119116 ret = {}
120117 print "Peregrine tracking:"
121118 for band in bands :
@@ -137,14 +134,14 @@ def check_per_track_results(expected_lock_ratio, filename, prn, bands,
137134 print "band =" , band
138135 lock_ratio = float (lock_detect_outp_sum ) / lock_detect_outp_len
139136 print "lock_ratio =" , lock_ratio
140- if ( not short_long_cycles and not pipelining ) or band != L2C :
137+ if not short_long_cycles or band != L2C :
141138 assert lock_ratio >= expected_lock_ratio
142139 ret [band ]['lock_ratio' ] = lock_ratio
143140 return ret
144141
145142
146143def check_tr_loop_track (expected_lock_ratio , filename , prn , bands ,
147- pipelining , short_long_cycles ):
144+ short_long_cycles ):
148145 ret = {}
149146 print "Tracking loop:"
150147 for band in bands :
@@ -161,7 +158,7 @@ def check_tr_loop_track(expected_lock_ratio, filename, prn, bands,
161158 print "band =" , band
162159 lock_ratio = float (lock_detect_outp_sum ) / lock_detect_outp_len
163160 print "lock_ratio =" , lock_ratio
164- if ( not short_long_cycles and not pipelining ) or band != L2C :
161+ if not short_long_cycles or band != L2C :
165162 assert lock_ratio >= expected_lock_ratio
166163 ret [band ]['lock_ratio' ] = lock_ratio
167164 return ret
@@ -185,9 +182,9 @@ def test_tracking():
185182 run_track_test (samples , 0.6 , init_doppler , init_code_phase , prn , file_format ,
186183 freq_profile )
187184 run_track_test (samples , 0.3 , init_doppler , init_code_phase , prn , file_format ,
188- freq_profile , pipelining = 0.5 )
185+ freq_profile )
189186 run_track_test (samples , 0.3 , init_doppler , init_code_phase , prn , file_format ,
190- freq_profile , short_long_cycles = 0.5 )
187+ freq_profile , short_long_cycles = True )
191188
192189 os .remove (samples )
193190
0 commit comments