removed all frame/subframe copies distributed update, replace by a single function

This commit is contained in:
laurent
2019-08-09 08:10:36 +02:00
parent 88d5739040
commit 32e19dbbb7
6 changed files with 150 additions and 95 deletions
+4 -2
View File
@@ -632,10 +632,12 @@ void rx_rf(RU_t *ru,int *frame,int *subframe) {
}
if (proc->first_rx == 1) {
ru->ts_offset = proc->timestamp_rx;
proc->timestamp_rx = 0;
//ru->ts_offset = proc->timestamp_rx;
//proc->timestamp_rx = 0;
proc->first_rx = false;
} else {
if (proc->timestamp_rx - old_ts != fp->samples_per_tti) {
LOG_E(HW,"impossible shift in RFSIM\n");
ru->ts_offset += (proc->timestamp_rx - old_ts - fp->samples_per_tti);
proc->timestamp_rx = ts-ru->ts_offset;
}