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.
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 387b9f3..9bd90df 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -540,7 +540,7 @@
{
float threshold = 6.0;
- return detectRACHBurst(burst, threshold, mSPSRx, &, &toa);
+ return detectRACHBurst(burst, threshold, mSPSRx, amp, toa);
}
/*
@@ -569,8 +569,8 @@
}
/* 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;