1
0
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:
Carles Fernandez 2019-06-29 21:13:14 +02:00
parent 0b1683fa1e
commit dd3b2f11db
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -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());
}