Tests with estimator

master
ismagom 10 years ago
parent a690c2a232
commit c257d4f94b

@ -148,12 +148,19 @@ int main(int argc, char *argv[])
phy.init_agc(&radio_uhd, &ttisync, &log); 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 // Give it time to create thread
sleep(1); 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 */ /* Instruct the PHY to decode BCH */
if (!phy.decode_mib_best(&cell, bch_payload)) { if (!phy.decode_mib_best(&cell, bch_payload)) {
exit(-1); exit(-1);

@ -407,14 +407,16 @@ int main(int argc, char **argv) {
bzero(&old_dl_dci, sizeof(srslte_ra_dl_dci_t)); bzero(&old_dl_dci, sizeof(srslte_ra_dl_dci_t));
#endif #endif
ue_sync.correct_cfo = !prog_args.disable_cfo; //ue_sync.correct_cfo = !prog_args.disable_cfo;
/* Set high priority */ /* Set high priority */
/*
struct sched_param param; struct sched_param param;
param.sched_priority = sched_get_priority_max(SCHED_FIFO); param.sched_priority = sched_get_priority_max(SCHED_FIFO);
if (sched_setscheduler(pthread_self(), SCHED_FIFO, &param)) { if (sched_setscheduler(pthread_self(), SCHED_FIFO, &param)) {
perror("setscheduler"); perror("setscheduler");
} }
*/
INFO("\nEntering main loop...\n\n", 0); INFO("\nEntering main loop...\n\n", 0);
/* Main loop */ /* Main loop */

Loading…
Cancel
Save