NR_UE: add PI controller to time sync

this allows to compensate larger continuous time drift in DL (e.g. large Doppler from LEO satellite)
This commit is contained in:
Thomas Schlichter
2024-08-23 10:26:18 +02:00
parent 8ab7f1dd68
commit 4039473a70
5 changed files with 31 additions and 25 deletions
+1 -1
View File
@@ -947,7 +947,7 @@ void *UE_thread(void *arg)
if (slot_nr == nb_slot_frame - 1) {
// we shift of half of measured drift, at each beginning of frame for both rx and tx
iq_shift_to_apply = shiftForNextFrame;
shiftForNextFrame = 0; // We will get a new measured offset if we decode PBCH
shiftForNextFrame = -round(UE->max_pos_acc * get_nrUE_params()->time_sync_I);
}
const int readBlockSize = get_readBlockSize(slot_nr, fp) - iq_shift_to_apply;