aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/Transceiver.cpp
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-06-09 20:52:11 -0400
committerTom Tsou <tom.tsou@ettus.com>2015-07-30 14:22:13 -0700
commit130a8007fa52b96e44e92b12162b8aa253ba183b (patch)
tree7d0b27a0606ba869dd8d301f805c4eabae61fe2c /Transceiver52M/Transceiver.cpp
parent72e86196329dc83c386a2172c05f158879413573 (diff)
sigProcLib: Abstract out common part of Normal/RACH burst detection.
As a side change - get rid of passing toa and amp arguments as pointers and use references instead. The commit doesn't change behaviour, but makes the code cleaner. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
Diffstat (limited to 'Transceiver52M/Transceiver.cpp')
-rw-r--r--Transceiver52M/Transceiver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 8ae35f3..f03d7af 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -540,7 +540,7 @@ int Transceiver::detectRACH(TransceiverState *state,
{
float threshold = 6.0;
- return detectRACHBurst(burst, threshold, mSPSRx, &amp, &toa);
+ return detectRACHBurst(burst, threshold, mSPSRx, amp, toa);
}
/*
@@ -569,8 +569,8 @@ int Transceiver::detectTSC(TransceiverState *state, signalVector &burst,
}
/* Detect normal burst midambles */
- success = analyzeTrafficBurst(burst, mTSC, threshold, mSPSRx, &amp,
- &toa, mMaxExpectedDelay, estimateChan,
+ success = analyzeTrafficBurst(burst, mTSC, threshold, mSPSRx, amp,
+ toa, mMaxExpectedDelay, estimateChan,
&chanResp, &chanOffset);
if (success <= 0) {
return success;