From 99eb671db2047c82b8eeaccbbe111511a6484299 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 29 Jul 2021 18:10:45 +0200 Subject: [PATCH] prach_worker: fix PRACH plotting for NR --- srsenb/src/phy/prach_worker.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/srsenb/src/phy/prach_worker.cc b/srsenb/src/phy/prach_worker.cc index e39a02106..52b071980 100644 --- a/srsenb/src/phy/prach_worker.cc +++ b/srsenb/src/phy/prach_worker.cc @@ -52,14 +52,18 @@ int prach_worker::init(const srsran_cell_t& cell_, #if defined(ENABLE_GUI) and ENABLE_PRACH_GUI char title[32] = {}; - snprintf(title, sizeof(title), "PRACH buffer %d", cc_idx); + snprintf(title, sizeof(title), "PRACH buffer %s %d", prach.is_nr ? "NR" : "LTE", cc_idx); sdrgui_init(); plot_real_init(&plot_real); plot_real_setTitle(&plot_real, title); plot_real_setXAxisAutoScale(&plot_real, true); plot_real_setYAxisAutoScale(&plot_real, true); - plot_real_addToWindowGrid(&plot_real, (char*)"PRACH", 0, cc_idx); + if (prach.is_nr) { + plot_real_addToWindowGrid(&plot_real, (char*)"PRACH-NR", 1, cc_idx); + } else { + plot_real_addToWindowGrid(&plot_real, (char*)"PRACH", 0, cc_idx); + } #endif // defined(ENABLE_GUI) and ENABLE_PRACH_GUI return 0;