Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
plovv opened this issue Apr 2, 2019 · 0 comments
Open

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

plovv opened this issue Apr 2, 2019 · 0 comments

Comments

@plovv
Copy link

plovv commented Apr 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant