diff options
author | Thomas Tsou <tom@tsou.cc> | 2013-08-21 20:58:00 -0400 |
---|---|---|
committer | Thomas Tsou <tom@tsou.cc> | 2013-10-18 13:10:17 -0400 |
commit | 865bca42d6f93f542224026fc0b9dddfc9486223 (patch) | |
tree | 3b513d547eb0f447d83bc3cfb4fbfb814fb6752d /Transceiver52M/Transceiver.cpp | |
parent | c88d8d53f8685298b80940361fcd06ef38887152 (diff) |
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>
Diffstat (limited to 'Transceiver52M/Transceiver.cpp')
-rw-r--r-- | Transceiver52M/Transceiver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp index ad048ee..a5bbfc1 100644 --- a/Transceiver52M/Transceiver.cpp +++ b/Transceiver52M/Transceiver.cpp @@ -363,7 +363,7 @@ SoftVector *Transceiver::pullRadioVector(GSM::Time &wTime, float chanOffset; success = analyzeTrafficBurst(*vectorBurst, mTSC, - 3.0, + 5.0, mSPS, &litude, &TOA, @@ -398,7 +398,7 @@ SoftVector *Transceiver::pullRadioVector(GSM::Time &wTime, else { // RACH burst success = detectRACHBurst(*vectorBurst, - 5.0, // detection threshold + 6.0, mSPS, &litude, &TOA); |