Skip to content

Commit

Permalink
phy: log in info RSRP, EPRE and detection metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Arteaga committed Nov 19, 2024
1 parent 0201489 commit 2cd8166
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ struct formatter<srsran::pucch_processor_result> {
}

if (result.detection_metric.has_value()) {
helper.format_if_verbose(ctx, "detection_metric={:.1f}", result.detection_metric.value());
helper.format_always(ctx, "metric={:.1f}", result.detection_metric.value());
}

helper.format_if_verbose(ctx, result.csi);
helper.format_always(ctx, result.csi);
return ctx.out();
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ struct formatter<srsran::channel_state_information> {

// Print the measurements that are present.
if (epre_dB.has_value()) {
helper.format_if_verbose(ctx, "epre={:+.1f}dB", epre_dB.value());
helper.format_always(ctx, "epre={:+.1f}dB", epre_dB.value());
} else {
helper.format_if_verbose(ctx, "epre=na");
helper.format_always(ctx, "epre=na");
}
if (rsrp_dB.has_value()) {
helper.format_if_verbose(ctx, "rsrp={:+.1f}dB", rsrp_dB.value());
helper.format_always(ctx, "rsrp={:+.1f}dB", rsrp_dB.value());
} else {
helper.format_if_verbose(ctx, "rsrp=na");
helper.format_always(ctx, "rsrp=na");
}
if (sinr_dB.has_value()) {
helper.format_if_verbose(ctx, "sinr={:+.1f}dB", sinr_dB.value());
Expand Down

0 comments on commit 2cd8166

Please sign in to comment.