From 7e6a35a9f7ab6bbcbb3c123094519757b37945bc Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 29 Jan 2021 15:46:16 +0100 Subject: [PATCH] Fix Synch error calculation --- lib/src/phy/ch_estimation/dmrs_pdcch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/ch_estimation/dmrs_pdcch.c b/lib/src/phy/ch_estimation/dmrs_pdcch.c index e9675cb9c..d75930b82 100644 --- a/lib/src/phy/ch_estimation/dmrs_pdcch.c +++ b/lib/src/phy/ch_estimation/dmrs_pdcch.c @@ -444,7 +444,7 @@ int srslte_dmrs_pdcch_get_measure(const srslte_dmrs_pdcch_estimator_t* q, measure->epre = epre / (float)q->coreset.duration; measure->cfo_hz = cfo / (2.0f * (float)M_PI * Ts); measure->sync_error_us = - (float)SRSLTE_SUBC_SPACING_NR(q->carrier.numerology) * sync_err / (4.0e-6f * (float)q->coreset.duration); + sync_err / (4.0e-6f * (float)q->coreset.duration * SRSLTE_SUBC_SPACING_NR(q->carrier.numerology)); measure->rsrp_dBfs = srslte_convert_power_to_dB(measure->rsrp); measure->epre_dBfs = srslte_convert_power_to_dB(measure->epre);