From 6123926353e7a2af995653ba0c410887356f37ba Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Thu, 27 May 2021 19:02:46 +0200 Subject: [PATCH] Fix NR cell search frequency --- srsue/test/phy/nr_cell_search_rf.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srsue/test/phy/nr_cell_search_rf.cc b/srsue/test/phy/nr_cell_search_rf.cc index 881e53dca..3838bfd38 100644 --- a/srsue/test/phy/nr_cell_search_rf.cc +++ b/srsue/test/phy/nr_cell_search_rf.cc @@ -224,7 +224,7 @@ int main(int argc, char** argv) // Iterate over all GSCN for (; not sync_raster.end(); sync_raster.next()) { - double ssb_freq_hz = 3675.36e6;//sync_raster.get_frequency(); + double ssb_freq_hz = sync_raster.get_frequency(); // Set frequency if the deviation from the current frequency is too high if (std::abs(center_freq_hz - ssb_freq_hz) > (args.srate_hz / 2.0)) { @@ -234,7 +234,7 @@ int main(int argc, char** argv) radio.set_rx_freq(0, center_freq_hz + args.freq_offset_hz); } - logger.info("Measuring SSB frequency %.2f MHz, center %.2f", ssb_freq_hz / 1e6, center_freq_hz / 1e6); + logger.info("Measuring SSB frequency %.2f MHz, center %.2f MHz", ssb_freq_hz / 1e6, center_freq_hz / 1e6); // Setup measurement srsue::scell::intra_measure_nr::config_t meas_cfg = {};