siglabsoss / shannon

Base Station Signal Processing
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fix start-of-frame detection when "flat" peak is detected #10

Open esromneb opened 10 years ago

esromneb commented 10 years ago

The cross correlation function sometimes detects a flat peek. Right now we are using the first value of this flat peek. in reality we should find the middle of this peek and use that.

The system prints "Flat peak detected, start of frame will be slightly wrong" when this occurs.

https://github.com/popwi/shannon/blob/ben/src/dsp/prota/popsparsecorrelate.c#L261