mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-16 04:05:46 +00:00
Fix wrong loop
This commit is contained in:
parent
0b1683fa1e
commit
dd3b2f11db
@ -242,7 +242,7 @@ void GpsL1CaPcpsQuickSyncAcquisition::set_local_code()
|
||||
gps_l1_ca_code_gen_complex_sampled(gsl::span<std::complex<float>>(code, code_length_), gnss_synchro_->PRN, fs_in_, 0);
|
||||
|
||||
gsl::span<gr_complex> code_span(code_, vector_length_);
|
||||
for (unsigned int i = 0; i < sampled_ms_; i++)
|
||||
for (unsigned int i = 0; i < (sampled_ms_ / folding_factor_); i++)
|
||||
{
|
||||
std::copy_n(code, code_length_, code_span.subspan(i * code_length_, code_length_).data());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user