Commit 3a8f8fe0 authored by lfq's avatar lfq

minor changes in ue

parent 2a1ece67
...@@ -446,7 +446,7 @@ static void UE_synch(void *arg) { ...@@ -446,7 +446,7 @@ static void UE_synch(void *arg) {
nr_get_carrier_frequencies(UE, &dl_carrier, &ul_carrier); nr_get_carrier_frequencies(UE, &dl_carrier, &ul_carrier);
if (nr_initial_sync(&syncD->proc, UE, 2, get_softmodem_params()->sa) == 0) { if (nr_initial_sync(&syncD->proc, UE, 2, get_softmodem_params()->sa) == 0) {
freq_offset = UE->common_vars.freq_offset; // frequency offset computed with pss in initial sync freq_offset += UE->common_vars.freq_offset; // frequency offset computed with pss in initial sync
hw_slot_offset = ((UE->rx_offset<<1) / UE->frame_parms.samples_per_subframe * UE->frame_parms.slots_per_subframe) + hw_slot_offset = ((UE->rx_offset<<1) / UE->frame_parms.samples_per_subframe * UE->frame_parms.slots_per_subframe) +
round((float)((UE->rx_offset<<1) % UE->frame_parms.samples_per_subframe)/UE->frame_parms.samples_per_slot0); round((float)((UE->rx_offset<<1) % UE->frame_parms.samples_per_subframe)/UE->frame_parms.samples_per_slot0);
......
...@@ -420,11 +420,16 @@ int nr_rx_pdsch(PHY_VARS_NR_UE *ue, ...@@ -420,11 +420,16 @@ int nr_rx_pdsch(PHY_VARS_NR_UE *ue,
frame_parms, frame_parms,
dlsch[0].dlsch_config.dlDmrsSymbPos, dlsch[0].dlsch_config.dlDmrsSymbPos,
ue->chest_time); ue->chest_time);
if ((pilots == 0) & ((symbol == (startSymbIdx + nbSymb -1)))) if ((pilots == 0) && (first_symbol_flag == 1))
{
static int cnt = 0;
if ((cnt %1024) == 0)
{ {
unsigned int pdsch_amp; unsigned int pdsch_amp;
pdsch_amp = cal_amp((int16_t *)&rxdataF_ext[0][0], nb_rb_pdsch * 12); pdsch_amp = cal_amp((int16_t *)&rxdataF_ext[0][0], nb_rb_pdsch * 12);
LOG_I(PHY, "frame %d %d, symbol %d pdsch_amp %d, rb %d\n", frame, nr_slot_rx, symbol, pdsch_amp, nb_rb_pdsch); LOG_I(PHY, "frame %d %d, symbol %d pdsch_amp %d, rb %d, rnti %d\n", frame, nr_slot_rx, symbol, pdsch_amp, nb_rb_pdsch, dlsch[0].rnti);
}
cnt++;
} }
if (meas_enabled) { if (meas_enabled) {
stop_meas(&meas); stop_meas(&meas);
......
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