Apply new TA through sample offset

master
Ismael Gomez 7 years ago
parent 6348745b19
commit 5ab0149218

@ -615,6 +615,8 @@ void phch_recv::set_agc_enable(bool enable)
void phch_recv::set_time_adv_sec(float time_adv_sec) void phch_recv::set_time_adv_sec(float time_adv_sec)
{ {
this->time_adv_sec = 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() float phch_recv::get_tx_cfo()

Loading…
Cancel
Save