Fixed CFO correction

This commit is contained in:
ismagom 2014-10-19 12:03:44 +02:00
parent 4232020557
commit 956a9d61dd
3 changed files with 7 additions and 7 deletions

View File

@ -195,7 +195,7 @@ int main(int argc, char **argv) {
gettimeofday(&tdata[1], NULL);
if (force_cfo != CFO_AUTO) {
cfo_correct(&cfocorr, input, input, -force_cfo/128);
cfo_correct(&cfocorr, input, input, force_cfo/128);
}
if (force_N_id_2 != -1) {

View File

@ -328,7 +328,7 @@ int ue_sync_get_buffer(ue_sync_t *q, cf_t **sf_symbols) {
}
/* Do CFO Correction and deliver the frame */
cfo_correct(&q->cfocorr, q->input_buffer, q->input_buffer, -q->cur_cfo / CURRENT_FFTSIZE);
cfo_correct(&q->cfocorr, q->input_buffer, q->input_buffer, q->cur_cfo / CURRENT_FFTSIZE);
*sf_symbols = q->input_buffer;
break;

View File

@ -117,19 +117,19 @@ int bcch_bch_mib_unpack(uint8_t *buffer, uint32_t msg_nof_bits, lte_cell_t *cell
switch(req->dl_Bandwidth) {
case dl_Bandwidth_n6:
cell->nof_ports = 6;
cell->nof_prb = 6;
break;
case dl_Bandwidth_n15:
cell->nof_ports = 15;
cell->nof_prb = 15;
break;
case dl_Bandwidth_n25:
cell->nof_ports = 25;
cell->nof_prb = 25;
break;
case dl_Bandwidth_n50:
cell->nof_ports = 50;
cell->nof_prb = 50;
break;
case dl_Bandwidth_n75:
cell->nof_ports = 75;
cell->nof_prb = 75;
break;
}
if (req->phich_Config.phich_Duration == phich_Duration_normal) {