Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

Commit 86655a4

Browse files
author
Adel Mamin
committed
Remove references to stages and pipelining
1 parent 29e2f81 commit 86655a4

File tree

4 files changed

+10
-51
lines changed

4 files changed

+10
-51
lines changed

peregrine/analysis/tracking_loop.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,8 @@ def main():
102102

103103
ms_to_process = int(args.ms_to_process)
104104

105-
if args.pipelining is not None:
106-
tracker_options = {'mode': 'pipelining',
107-
'k': args.pipelining}
108-
elif args.short_long_cycles is not None:
109-
tracker_options = {'mode': 'short-long-cycles',
110-
'k': args.short_long_cycles}
105+
if args.short_long_cycles is not None:
106+
tracker_options = {'mode': 'short-long-cycles'}
111107
else:
112108
tracker_options = None
113109

@@ -120,9 +116,6 @@ def main():
120116
signal=signal,
121117
sample_index=skip_samples)
122118

123-
if args.l1ca_profile:
124-
profile = defaults.l1ca_stage_profiles[args.l1ca_profile]
125-
126119
samples = {L1CA: {'IF': freq_profile['GPS_L1_IF']},
127120
L2C: {'IF': freq_profile['GPS_L2_IF']},
128121
'samples_total': -1,
@@ -147,7 +140,6 @@ def main():
147140
print "Initial carrier Doppler frequency [Hz]: %s" % carr_doppler
148141
print "Initial code phase [chips]: %s" % code_phase
149142
print "Signal: %s" % args.signal
150-
print "L1 stage profile: %s" % args.l1ca_profile
151143
print "Tracker options: %s" % str(tracker_options)
152144
print "L2C handover: %s" % str(l2c_handover)
153145
print "======================================================================"

peregrine/run.py

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -137,36 +137,15 @@ def populate_peregrine_cmd_line_arguments(parser):
137137

138138
fpgaSim = parser.add_argument_group('FPGA simulation',
139139
'FPGA delay control simulation')
140-
fpgaExcl = fpgaSim.add_mutually_exclusive_group(required=False)
141-
fpgaExcl.add_argument("--pipelining",
142-
type=float,
143-
nargs='?',
144-
metavar='PIPELINING_K',
145-
help="Use FPGA pipelining simulation. Supply optional "
146-
" coefficient (%f)" % defaults.pipelining_k,
147-
const=defaults.pipelining_k,
148-
default=None)
149-
150-
fpgaExcl.add_argument("--short-long-cycles",
151-
type=float,
152-
nargs='?',
153-
metavar='PIPELINING_K',
154-
help="Use FPGA short-long cycle simulation. Supply"
155-
" optional pipelining coefficient (0.)",
156-
const=0.,
157-
default=None)
140+
141+
fpgaSim.add_argument("--short-long-cycles",
142+
help="Use FPGA short-long cycle simulation.",
143+
action="store_true")
158144

159145
signalParam = parser.add_argument_group('Signal tracking',
160146
'Parameters for satellite vehicle'
161147
' signal')
162148

163-
signalParam.add_argument('--l1ca-profile',
164-
metavar='PROFILE',
165-
help='L1 C/A stage profile. Controls coherent'
166-
' integration time and tuning parameters: %s.' %
167-
str(defaults.l1ca_stage_profiles.keys()),
168-
choices=defaults.l1ca_stage_profiles.keys())
169-
170149
return signalParam
171150

172151

@@ -207,16 +186,8 @@ def main():
207186
else:
208187
raise NotImplementedError()
209188

210-
if args.l1ca_profile:
211-
profile = defaults.l1ca_stage_profiles[args.l1ca_profile]
212-
stage2_coherent_ms = profile[1]['coherent_ms']
213-
stage2_params = profile[1]['loop_filter_params']
214-
else:
215-
stage2_coherent_ms = None
216-
stage2_params = None
217-
218-
if args.pipelining is not None:
219-
tracker_options = {'mode': 'pipelining', 'k': args.pipelining}
189+
if args.short_long_cycles is not None:
190+
tracker_options = {'mode': 'short-long-cycles'}
220191
else:
221192
tracker_options = None
222193

@@ -304,8 +275,6 @@ def main():
304275
ms_to_track=ms_to_process,
305276
sampling_freq=freq_profile[
306277
'sampling_freq'], # [Hz]
307-
stage2_coherent_ms=stage2_coherent_ms,
308-
stage2_loop_filter_params=stage2_params,
309278
tracker_options=tracker_options,
310279
output_file=args.file,
311280
progress_bar_output=args.progress_bar,

peregrine/tracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ def _set_track_profile(self):
383383

384384
self.coherent_ms = coherent_ms
385385

386-
logger.info("[PRN: %d (%s)] coherent_ms=%d and PLL bw=%f FLL bw=%f" %
387-
(self.prn + 1, self.signal, self.coherent_ms, pll_bw, fll_bw))
386+
# logger.info("[PRN: %d (%s)] coherent_ms=%d and PLL bw=%f FLL bw=%f" %
387+
# (self.prn + 1, self.signal, self.coherent_ms, pll_bw, fll_bw))
388388

389389
lock_detect_params_fast = get_lock_detector(pll_bw,
390390
defaults.lock_detect_params_fast)

peregrine/tracking_loop.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ def retune(self, code_params, carr_params, loop_freq, carr_freq_b1, carr_to_code
378378
self.phase_c1 = phase_a2 * phase_omega_0
379379
self.phase_c2 = phase_omega_0 * phase_omega_0
380380
# self.phase_c1, self.phase_c2 = controlled_root(2, 1 / loop_freq, carr_bw)
381-
# print "T = ", 1 / loop_freq, " BW = ", carr_bw
382381

383382
# DLL constants
384383
code_omega_0 = code_bw / 0.53
@@ -509,7 +508,6 @@ def retune(self, code_params, carr_params, loop_freq, carr_freq_b1, carr_to_code
509508
self.phase_c1 = phase_a2 * phase_omega_0
510509
self.phase_c2 = phase_omega_0 * phase_omega_0
511510
# self.phase_c1, self.phase_c2 = controlled_root(2, 1 / loop_freq, carr_bw)
512-
# print "T = ", 1 / loop_freq, " BW = ", carr_bw
513511

514512
# DLL constants
515513
code_omega_0 = code_bw / 0.53

0 commit comments

Comments
 (0)