Skip to content

acquisition exclude range of second peak and fine resolution fft #3

Description

@plovv

Greetings,

So I have 2 questions, regarding the acquisition.m

  1. 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.

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions