find_lts.py
Find LTS sequence
---------------------------------------------------------------------
Copyright © 2018-2019. Rice University.
RENEW OPEN SOURCE LICENSE: http://renew-wireless.org/license
---------------------------------------------------------------------
def find_lts.find_lts |
( |
|
iq, |
|
|
|
thresh = 0.8 , |
|
|
|
us = 1 , |
|
|
|
cp = 32 , |
|
|
|
flip = False , |
|
|
|
lts_seq = [] |
|
) |
| |
Find the indices of LTSs in the input "iq" signal (upsampled by a factor of "up").
"thresh" sets sensitivity.
Inputs:
iq: IQ samples
thresh: threshold to detect peak
us: upsampling factor, needed for generate_training_seq() function
cp: cyclic prefix
flip: Flag to specify order or LTS sequence.
lts_seq: if transmitted lts sequence is provided, use it, otherwise generate it
Returns:
best_pk: highest LTS peak,
lts_pks: the list of all detected LTSs, and
lts_corr: the correlated signal, multiplied by itself delayed by 1/2 an LTS