Transceiver52M: Refactor RACH and normal burst detection

Both RACH and normal bursts are detected with the same approach of
midamble correlation combined with peak-to-average ratio. The
difference is the midamble placements and lengths. Thus, there is
no reason to have independent implementations.

This patch creates a common call burstDetect(), while leaving the
correlation window indexing in the original calls.

Signed-off-by: Thomas Tsou <tom@tsou.cc>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6738 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Thomas Tsou
2013-10-17 06:18:32 +00:00
parent e6d3c22c56
commit abc5f65b0e
2 changed files with 144 additions and 124 deletions

View File

@@ -386,7 +386,7 @@ SoftVector *Transceiver::pullRadioVector(GSM::Time &wTime,
float chanOffset;
success = analyzeTrafficBurst(*vectorBurst,
mTSC,
3.0,
5.0,
mSPS,
&amplitude,
&TOA,
@@ -421,7 +421,7 @@ SoftVector *Transceiver::pullRadioVector(GSM::Time &wTime,
else {
// RACH burst
success = detectRACHBurst(*vectorBurst,
5.0, // detection threshold
6.0,
mSPS,
&amplitude,
&TOA);