Greetings,
So I have 2 questions, regarding the acquisition.m
-
At line 155. If I understand correctly there has to be a second high peak not closer to 1 chip to the first peak. There is also a check that considers the matrix's boundaries. But why check against the number 2. (if excludeRangeIndex1 < 2) This condition seems wrong to me, and it would make more sense if it would be checking against 1 (if excludeRangeIndex1 < 1).
An example: What if samplesPerChip = 12 and first peak is at index 13. Then excludeRangeIndex1 = 13 - 12 = 1 < 2 which follows to (... samplesPerCode + excludeRangeIndex1) where samplesPerCode + 1 will exceed the boundaries in results.
-
I struggle to understand the part at 203 [fftMax, fftMaxIndex] = max(fftxc(5 : uniqFftPts-5));
Why is the range 5 : uniqFftPts-5, what is that 5 number?
Thanks
Greetings,
So I have 2 questions, regarding the acquisition.m
At line 155. If I understand correctly there has to be a second high peak not closer to 1 chip to the first peak. There is also a check that considers the matrix's boundaries. But why check against the number 2. (if excludeRangeIndex1 < 2) This condition seems wrong to me, and it would make more sense if it would be checking against 1 (if excludeRangeIndex1 < 1).
An example: What if samplesPerChip = 12 and first peak is at index 13. Then excludeRangeIndex1 = 13 - 12 = 1 < 2 which follows to (... samplesPerCode + excludeRangeIndex1) where samplesPerCode + 1 will exceed the boundaries in results.
I struggle to understand the part at 203 [fftMax, fftMaxIndex] = max(fftxc(5 : uniqFftPts-5));
Why is the range 5 : uniqFftPts-5, what is that 5 number?
Thanks