adding fixes to embms channel estimation

master
yagoda 6 years ago committed by Andre Puschmann
parent 0320d475e9
commit 2acf282a8b

@ -728,7 +728,7 @@ int main(int argc, char **argv) {
uint8_t mch_table[10]; uint8_t mch_table[10];
bzero(&mch_table[0], sizeof(uint8_t)*10); bzero(&mch_table[0], sizeof(uint8_t)*10);
if(mbsfn_area_id < -1) { if(mbsfn_area_id > -1) {
generate_mcch_table(mch_table, mbsfn_sf_mask); generate_mcch_table(mch_table, mbsfn_sf_mask);
} }
N_id_2 = cell.id % 3; N_id_2 = cell.id % 3;

@ -380,7 +380,7 @@ int main(int argc, char **argv) {
} }
uint8_t mch_table[10]; uint8_t mch_table[10];
bzero(&mch_table[0], sizeof(uint8_t)*10); bzero(&mch_table[0], sizeof(uint8_t)*10);
if(prog_args.mbsfn_area_id < -1) { if(prog_args.mbsfn_area_id > -1) {
generate_mcch_table(mch_table, prog_args.mbsfn_sf_mask); generate_mcch_table(mch_table, prog_args.mbsfn_sf_mask);
} }
if(prog_args.cpu_affinity > -1) { if(prog_args.cpu_affinity > -1) {

@ -257,6 +257,10 @@ int srslte_chest_dl_set_cell(srslte_chest_dl_t *q, srslte_cell_t cell)
fprintf(stderr, "Error initializing interpolator\n"); fprintf(stderr, "Error initializing interpolator\n");
return SRSLTE_ERROR; return SRSLTE_ERROR;
} }
if (srslte_interp_linear_resize(&q->srslte_interp_lin_mbsfn, 6*q->cell.nof_prb, SRSLTE_NRE/6)) {
fprintf(stderr, "Error initializing interpolator\n");
return SRSLTE_ERROR;
}
} }
ret = SRSLTE_SUCCESS; ret = SRSLTE_SUCCESS;
@ -386,7 +390,8 @@ static void interpolate_pilots(srslte_chest_dl_t *q, cf_t *pilot_estimates, cf_t
fidx_offset = srslte_refsignal_mbsfn_fidx(l - 1); fidx_offset = srslte_refsignal_mbsfn_fidx(l - 1);
srslte_interp_linear_offset(&q->srslte_interp_lin_mbsfn, &pilot_estimates[(2*q->cell.nof_prb) + 6*q->cell.nof_prb*(l - 1)], srslte_interp_linear_offset(&q->srslte_interp_lin_mbsfn, &pilot_estimates[(2*q->cell.nof_prb) + 6*q->cell.nof_prb*(l - 1)],
&ce[srslte_refsignal_mbsfn_nsymbol(l - 1) * q->cell.nof_prb * SRSLTE_NRE], &ce[srslte_refsignal_mbsfn_nsymbol(l - 1) * q->cell.nof_prb * SRSLTE_NRE],
fidx_offset, SRSLTE_NRE/6-fidx_offset); fidx_offset, (fidx_offset)?0:1);
} }
} else { } else {
if (q->average_subframe) { if (q->average_subframe) {

Loading…
Cancel
Save