mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-11-15 10:51:27 +00:00
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:
@@ -386,7 +386,7 @@ SoftVector *Transceiver::pullRadioVector(GSM::Time &wTime,
|
||||
float chanOffset;
|
||||
success = analyzeTrafficBurst(*vectorBurst,
|
||||
mTSC,
|
||||
3.0,
|
||||
5.0,
|
||||
mSPS,
|
||||
&litude,
|
||||
&TOA,
|
||||
@@ -421,7 +421,7 @@ SoftVector *Transceiver::pullRadioVector(GSM::Time &wTime,
|
||||
else {
|
||||
// RACH burst
|
||||
success = detectRACHBurst(*vectorBurst,
|
||||
5.0, // detection threshold
|
||||
6.0,
|
||||
mSPS,
|
||||
&litude,
|
||||
&TOA);
|
||||
|
||||
Reference in New Issue
Block a user