Commit 21140c0a authored by Marwan Hammouda's avatar Marwan Hammouda

[develop] Some debug logs added

parent fea252a2
......@@ -49,7 +49,7 @@ void nr_adjust_synch_ue(NR_DL_FRAME_PARMS *frame_parms,
static int first_time = 1;
int max_val = 0, max_pos = 0;
const int sync_pos = 0;
uint8_t sync_offset = 0;
//uint8_t sync_offset = 0;
static int64_t TO_I_Ctrl = 0; //Integral controller for TO
int I_ScalingF = 10; //Scaling factor for the I controller, can be adjusted
......@@ -104,7 +104,7 @@ void nr_adjust_synch_ue(NR_DL_FRAME_PARMS *frame_parms,
ue->rx_offset_slot = 1;
ue->rx_offset_comp = 0;
printf("** Frame: %u, ue->rx_offset: %d, ue->rx_offset_TO: %d\n", frame, ue->rx_offset, ue->rx_offset_TO);
LOG_D(PHY, "Frame: %u, ue->rx_offset: %d, ue->rx_offset_TO: %d\n", frame, ue->rx_offset, ue->rx_offset_TO);
if (tdriftComp == 0)
{
......
......@@ -535,8 +535,10 @@ int nr_rx_pbch(PHY_VARS_NR_UE *ue,
#ifdef DEBUG_PBCH
double rx_gain = openair0_cfg[0].rx_gain[0];
double rx_gain_offset = openair0_cfg[0].rx_gain_offset[0];
double DopplerEstMax = M_PI/ (2*M_PI*(DMRS_idx_current-DMRS_idx_last)*TOfdm);
LOG_I(PHY, "**** DopplerEst: %f, ue->DopplerEst: %d, chLevel: %i, chLevelLog: %u, outShift: %u, re: %i, im: %i, phase: %f, rxG: %f, rxGOff: %f\n",
DopplerEst, ue->DopplerEst, channelLevel, channelLevelLog, outputShift, Res_cpx.r, Res_cpx.i, Res_phase, rx_gain, rx_gain_offset);
LOG_I(PHY, "DopplerEstMax: %f\n", DopplerEstMax);
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment