Minor changes

master
Xavier Arteaga 4 years ago committed by Xavier Arteaga
parent 202ec283ff
commit 21e9a3958f

@ -613,7 +613,7 @@ int main(int argc, char** argv)
srslte_chest_dl_cfg_t chest_mbsfn_cfg = {}; srslte_chest_dl_cfg_t chest_mbsfn_cfg = {};
chest_mbsfn_cfg.filter_type = SRSLTE_CHEST_FILTER_TRIANGLE; chest_mbsfn_cfg.filter_type = SRSLTE_CHEST_FILTER_TRIANGLE;
chest_mbsfn_cfg.filter_coef[0] = 0.1; 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; chest_mbsfn_cfg.noise_alg = SRSLTE_NOISE_ALG_PSS;
// Allocate softbuffer buffers // Allocate softbuffer buffers
@ -671,7 +671,7 @@ int main(int argc, char** argv)
// Variables for measurements // Variables for measurements
uint32_t nframes = 0; 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, 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; bool decode_pdsch = false;
for (int i = 0; i < SRSLTE_MAX_LAYERS; i++) { 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) { if (elapsed != 0.0f) {
procrate = SRSLTE_VEC_EMA(ue_bits / elapsed, procrate, 0.01f); procrate = SRSLTE_VEC_EMA(ue_bits / elapsed, procrate, 0.01f);
} }

@ -94,16 +94,15 @@ public:
static void rf_msg_callback(void* arg, srslte_rf_error_t error); static void rf_msg_callback(void* arg, srslte_rf_error_t error);
private: private:
std::vector<srslte_rf_t> rf_devices = {}; std::vector<srslte_rf_t> rf_devices = {};
std::vector<srslte_rf_info_t> rf_info = {}; std::vector<srslte_rf_info_t> rf_info = {};
std::vector<int32_t> rx_offset_n = {}; std::vector<int32_t> rx_offset_n = {};
rf_metrics_t rf_metrics = {}; rf_metrics_t rf_metrics = {};
log_filter log_local = {}; log_filter log_local = {};
log_filter* log_h = nullptr; log_filter* log_h = nullptr;
srslte::logger* logger = nullptr; srslte::logger* logger = nullptr;
phy_interface_radio* phy = nullptr; phy_interface_radio* phy = nullptr;
cf_t* zeros = nullptr; cf_t* zeros = nullptr;
cf_t* buffer = nullptr;
std::array<cf_t*, SRSLTE_MAX_CHANNELS> dummy_buffers; std::array<cf_t*, SRSLTE_MAX_CHANNELS> dummy_buffers;
rf_timestamp_t end_of_burst_time = {}; rf_timestamp_t end_of_burst_time = {};

Loading…
Cancel
Save