From 130a8007fa52b96e44e92b12162b8aa253ba183b Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Tue, 9 Jun 2015 20:52:11 -0400 Subject: 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 --- Transceiver52M/Transceiver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Transceiver52M/Transceiver.cpp') 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, &, &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, &, - &toa, mMaxExpectedDelay, estimateChan, + success = analyzeTrafficBurst(burst, mTSC, threshold, mSPSRx, amp, + toa, mMaxExpectedDelay, estimateChan, &chanResp, &chanOffset); if (success <= 0) { return success; -- cgit v1.2.3