From 21e9a3958f05d1bae1992fad94dc8938e48fb348 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Mon, 20 Jul 2020 14:41:53 +0200 Subject: [PATCH] Minor changes --- lib/examples/pdsch_ue.c | 6 +++--- lib/include/srslte/radio/radio.h | 19 +++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/lib/examples/pdsch_ue.c b/lib/examples/pdsch_ue.c index 07cf24736..4e8819365 100644 --- a/lib/examples/pdsch_ue.c +++ b/lib/examples/pdsch_ue.c @@ -613,7 +613,7 @@ int main(int argc, char** argv) srslte_chest_dl_cfg_t chest_mbsfn_cfg = {}; chest_mbsfn_cfg.filter_type = SRSLTE_CHEST_FILTER_TRIANGLE; chest_mbsfn_cfg.filter_coef[0] = 0.1; - chest_mbsfn_cfg.estimator_alg = SRSLTE_ESTIMATOR_ALG_INTERPOLATE; + chest_mbsfn_cfg.estimator_alg = SRSLTE_ESTIMATOR_ALG_INTERPOLATE; chest_mbsfn_cfg.noise_alg = SRSLTE_NOISE_ALG_PSS; // Allocate softbuffer buffers @@ -671,7 +671,7 @@ int main(int argc, char** argv) // Variables for measurements uint32_t nframes = 0; float rsrp0 = 0.0, rsrp1 = 0.0, rsrq = 0.0, snr = 0.0, enodebrate = 0.0, uerate = 0.0, procrate = 0.0, - sinr[SRSLTE_MAX_LAYERS][SRSLTE_MAX_CODEBOOKS], sync_err[SRSLTE_MAX_PORTS][SRSLTE_MAX_PORTS]; + sinr[SRSLTE_MAX_LAYERS][SRSLTE_MAX_CODEBOOKS] = {}, sync_err[SRSLTE_MAX_PORTS][SRSLTE_MAX_PORTS] = {}; bool decode_pdsch = false; for (int i = 0; i < SRSLTE_MAX_LAYERS; i++) { @@ -871,7 +871,7 @@ int main(int argc, char** argv) } } } - float elapsed = (float)t[0].tv_usec + t[0].tv_sec * 1.0e+6f; + float elapsed = (float)t[0].tv_usec + t[0].tv_sec * 1.0e+6f; if (elapsed != 0.0f) { procrate = SRSLTE_VEC_EMA(ue_bits / elapsed, procrate, 0.01f); } diff --git a/lib/include/srslte/radio/radio.h b/lib/include/srslte/radio/radio.h index 1d7dd999b..121ef09fe 100644 --- a/lib/include/srslte/radio/radio.h +++ b/lib/include/srslte/radio/radio.h @@ -94,16 +94,15 @@ public: static void rf_msg_callback(void* arg, srslte_rf_error_t error); private: - std::vector rf_devices = {}; - std::vector rf_info = {}; - std::vector rx_offset_n = {}; - rf_metrics_t rf_metrics = {}; - log_filter log_local = {}; - log_filter* log_h = nullptr; - srslte::logger* logger = nullptr; - phy_interface_radio* phy = nullptr; - cf_t* zeros = nullptr; - cf_t* buffer = nullptr; + std::vector rf_devices = {}; + std::vector rf_info = {}; + std::vector rx_offset_n = {}; + rf_metrics_t rf_metrics = {}; + log_filter log_local = {}; + log_filter* log_h = nullptr; + srslte::logger* logger = nullptr; + phy_interface_radio* phy = nullptr; + cf_t* zeros = nullptr; std::array dummy_buffers; rf_timestamp_t end_of_burst_time = {};