aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioInterfaceDiversity.cpp
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2014-04-16 19:36:30 -0400
committerThomas Tsou <tom@tsou.cc>2014-10-06 10:35:29 -0700
commit1189019c30c1208c95868cb6998f6b7af25d2c45 (patch)
treeeef1039c2843cce3b570e2ef8f5dff20ea6ffab8 /Transceiver52M/radioInterfaceDiversity.cpp
parent187225cf337244ad7061745b7834a027e44855be (diff)
Transceiver52M: Add SCH detection capability
Use similar approach for detecting normal and RACH bursts, but apply a sample shift after detection in order to gradually zero the measured timing offset. SCH synchronization sequence and setup are added similar to RACH detection with the main difference, aside being the SCH runs full length of the burst. History is also added to accommodate full length burst correlation. Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/radioInterfaceDiversity.cpp')
-rw-r--r--Transceiver52M/radioInterfaceDiversity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/radioInterfaceDiversity.cpp b/Transceiver52M/radioInterfaceDiversity.cpp
index 8e921b1..b76a15f 100644
--- a/Transceiver52M/radioInterfaceDiversity.cpp
+++ b/Transceiver52M/radioInterfaceDiversity.cpp
@@ -189,7 +189,7 @@ void RadioInterfaceDiversity::pullBuffer()
num = mRadio->readSamples(convertRecvBuffer,
resamp_outchunk,
&overrun,
- readTimestamp,
+ readTimestamp + shiftOffset,
&local_underrun);
if ((size_t) num != resamp_outchunk) {
LOG(ALERT) << "Receive error " << num;