From c257d4f94bc1f3b6b3b8eadad998b84031615cc2 Mon Sep 17 00:00:00 2001 From: ismagom Date: Tue, 19 May 2015 19:23:06 +0100 Subject: [PATCH] Tests with estimator --- srsapps/ue/phy/test/ue_itf_test_sib1.cc | 15 +++++++++++---- srslte/examples/pdsch_ue.c | 6 ++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/srsapps/ue/phy/test/ue_itf_test_sib1.cc b/srsapps/ue/phy/test/ue_itf_test_sib1.cc index 2efb86804..d77972d27 100644 --- a/srsapps/ue/phy/test/ue_itf_test_sib1.cc +++ b/srsapps/ue/phy/test/ue_itf_test_sib1.cc @@ -148,12 +148,19 @@ int main(int argc, char *argv[]) phy.init_agc(&radio_uhd, &ttisync, &log); } - // Set RX freq and gain - phy.get_radio()->set_rx_freq(prog_args.uhd_freq); - // Give it time to create thread sleep(1); - + + // Set default parameters + phy.set_param(srslte::ue::phy_params::PRACH_CONFIG_INDEX, 0); + phy.set_param(srslte::ue::phy_params::PRACH_ROOT_SEQ_IDX, 0); + phy.set_param(srslte::ue::phy_params::PRACH_HIGH_SPEED_FLAG, 0); + phy.set_param(srslte::ue::phy_params::PRACH_ZC_CONFIG, 1); + + // Set RX freq and gain + phy.get_radio()->set_rx_freq(prog_args.uhd_freq); + phy.get_radio()->set_rx_gain(prog_args.uhd_gain); + /* Instruct the PHY to decode BCH */ if (!phy.decode_mib_best(&cell, bch_payload)) { exit(-1); diff --git a/srslte/examples/pdsch_ue.c b/srslte/examples/pdsch_ue.c index 6c1e15bab..e08f1443c 100644 --- a/srslte/examples/pdsch_ue.c +++ b/srslte/examples/pdsch_ue.c @@ -407,15 +407,17 @@ int main(int argc, char **argv) { bzero(&old_dl_dci, sizeof(srslte_ra_dl_dci_t)); #endif - ue_sync.correct_cfo = !prog_args.disable_cfo; + //ue_sync.correct_cfo = !prog_args.disable_cfo; /* Set high priority */ + /* struct sched_param param; param.sched_priority = sched_get_priority_max(SCHED_FIFO); if (sched_setscheduler(pthread_self(), SCHED_FIFO, ¶m)) { perror("setscheduler"); } - +*/ + INFO("\nEntering main loop...\n\n", 0); /* Main loop */ while (!go_exit && (sf_cnt < prog_args.nof_subframes || prog_args.nof_subframes == -1)) {