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

Commit 5769786

Browse files
Adel MaminRoman Gezikov
authored andcommitted
Fix bug in L1C/A correlator code (l1_ca_track_correlate)
1 parent 6b79835 commit 5769786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/correlate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void l1_ca_track_correlate(const s8* restrict samples, size_t samples_len,
7575
code_step);
7676

7777
if (0 == *num_samples) {
78-
*num_samples = (int)ceil(2 * L1_CA_CHIPS_PER_PRN_CODE / code_step);
78+
*num_samples = (int)ceil(L1_CA_CHIPS_PER_PRN_CODE / code_step);
7979
}
8080

8181
if (*num_samples > samples_len) {

0 commit comments

Comments
 (0)