Commit b9e6243d authored by Thomas Schlichter's avatar Thomas Schlichter

NR_UE: use tdriftComp instead of tshift for initial time drift compensation

parent c3c4bdb5
......@@ -882,7 +882,7 @@ void *UE_thread(void *arg)
int rx_offset_slot = 0; //samples to be shifted for the current slot
int UL_TO_Tx_ofs = 0;
static int acc_UL_To_TX = 0; // acculating samples compensated on UL through timing advance
extern int tshift;
extern int tdriftComp;
bool syncRunning=false;
const int nb_slot_frame = UE->frame_parms.slots_per_frame;
......@@ -905,8 +905,7 @@ void *UE_thread(void *arg)
if (res) {
syncRunning=false;
if (UE->is_synchronized) {
if (tshift)
{
if (tdriftComp) {
int diff = 0; // drift in one frame
if (TO_IScaling != 0)
UE->TO_I_Ctrl = round(TO_init_rate/TO_IScaling);
......
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