Fixed UE_SYNC can't do SSS on track

This commit is contained in:
ismagom 2015-05-19 19:32:41 +01:00
parent c257d4f94b
commit 04b8f00fe7
1 changed files with 5 additions and 1 deletions

View File

@ -118,16 +118,20 @@ int srslte_ue_sync_init(srslte_ue_sync_t *q,
q->sf_len = SRSLTE_SF_LEN(q->fft_size);
q->file_mode = false;
q->correct_cfo = true;
q->decode_sss_on_track = true;
if (cell.id == 1000) {
/* If the cell is unkown, we search PSS/SSS in 5 ms */
q->nof_recv_sf = 5;
q->decode_sss_on_track = true;
} else {
/* If the cell is known, we work on a 1ms basis */
q->nof_recv_sf = 1;
q->decode_sss_on_track = false;
}
q->frame_len = q->nof_recv_sf*q->sf_len;