From 5ab0149218d57c59734a9b06140d816342b6fec7 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Tue, 24 Apr 2018 13:18:48 +0200 Subject: [PATCH] Apply new TA through sample offset --- srsue/src/phy/phch_recv.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srsue/src/phy/phch_recv.cc b/srsue/src/phy/phch_recv.cc index 12c113e24..687e66fea 100644 --- a/srsue/src/phy/phch_recv.cc +++ b/srsue/src/phy/phch_recv.cc @@ -615,6 +615,8 @@ void phch_recv::set_agc_enable(bool enable) void phch_recv::set_time_adv_sec(float time_adv_sec) { this->time_adv_sec = time_adv_sec; + next_offset = -time_adv_sec*srslte_sampling_freq_hz(cell.nof_prb); + Info("Applying time_adv_sec=%.1f us, next_offset=%d\n", time_adv_sec*1e6, next_offset); } float phch_recv::get_tx_cfo()