fixed rsrp computation

This commit is contained in:
Ismael Gomez 2017-03-09 11:11:17 +01:00
parent 0d32284695
commit 5934f3a1df
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ float srslte_chest_dl_get_rsrp(srslte_chest_dl_t *q) {
// return sum of power received from all tx ports
float n = 0;
for (int i=0;i<q->last_nof_antennas;i++) {
n += srslte_vec_acc_ff(q->rsrp[i], q->cell.nof_ports)/q->cell.nof_ports;
n += srslte_vec_acc_ff(q->rsrp[i], q->cell.nof_ports);
}
return n/q->last_nof_antennas;
}