Skip to content

Commit

Permalink
Rename correlator shifts (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Can Ozmaden <[email protected]>
Co-authored-by: Can Ozmaden <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2021
1 parent 8282c9a commit 8ced045
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/code_replica.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ function gen_code_replica!(
correlator_sample_shifts::AbstractVector,
prn::Integer
)
most_early_sample_shift = correlator_sample_shifts[end]
most_late_sample_shift = correlator_sample_shifts[1]
total_samples = num_samples + most_early_sample_shift - most_late_sample_shift
earliest_sample_shift = correlator_sample_shifts[end]
latest_sample_shift = correlator_sample_shifts[1]
total_samples = num_samples + earliest_sample_shift - latest_sample_shift
gen_code!(
view(code_replica, start_sample:start_sample + total_samples - 1),
system,
prn,
sampling_frequency,
code_frequency,
start_code_phase,
most_late_sample_shift
latest_sample_shift
)
code_replica
end
Expand Down

0 comments on commit 8ced045

Please sign in to comment.