prach_worker: fix PRACH plotting for NR

This commit is contained in:
Andre Puschmann 2021-07-29 18:10:45 +02:00 committed by Xavier Arteaga
parent 38f1e158a5
commit 99eb671db2
1 changed files with 6 additions and 2 deletions

View File

@ -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;