Commit 7d86bb5f authored by Marwan Hammouda's avatar Marwan Hammouda

updating ta command again enabled

parent c6ce6b79
......@@ -237,9 +237,10 @@ static uint64_t idx = 0;
static int lastFrame;
void ue_ta_procedures(PHY_VARS_NR_UE *ue, int slot_tx, int frame_tx)
{
if ( (frame_tx == ue->ta_frame && slot_tx == ue->ta_slot && idx == 0) ||
(frame_tx == ue->ta_frame && slot_tx == ue->ta_slot && (frame_tx - lastFrame) == 100) ) {
//if ( (frame_tx == ue->ta_frame && slot_tx == ue->ta_slot && idx == 0) ||
//(frame_tx == ue->ta_frame && slot_tx == ue->ta_slot && (frame_tx - lastFrame) == 100) ) {
if (frame_tx == ue->ta_frame && slot_tx == ue->ta_slot){
lastFrame = frame_tx;
idx = 1;
......@@ -253,7 +254,7 @@ void ue_ta_procedures(PHY_VARS_NR_UE *ue, int slot_tx, int frame_tx)
// = 16 * ofdm_symbol_size / 2048
uint16_t bw_scaling = 16 * ofdm_symbol_size / 2048;
//ue->timing_advance += (ue->ta_command - 31) * bw_scaling;
ue->timing_advance += (ue->ta_command - 31) * bw_scaling;
LOG_I(PHY, "In %s: [UE %d] [%d.%d] Got timing advance command %u from MAC, new value is %d\n",
__FUNCTION__,
......
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