path: root/Transceiver52M/radioInterfaceResamp.cpp
diff options
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/radioInterfaceResamp.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/radioInterfaceResamp.cpp')
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/radioInterfaceResamp.cpp b/Transceiver52M/radioInterfaceResamp.cpp
index f898d65..c6e5ee1 100644
--- a/Transceiver52M/radioInterfaceResamp.cpp
+++ b/Transceiver52M/radioInterfaceResamp.cpp
@@ -188,7 +188,7 @@ void RadioInterfaceResamp::pullBuffer()
num_recv = mRadio->readSamples(convertRecvBuffer,
- readTimestamp,
+ readTimestamp + shiftOffset,
if (num_recv != (int) resamp_outchunk) {
LOG(ALERT) << "Receive error " << num_recv;