aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/sigProcLib.cpp
diff options
context:
space:
mode:
authorTom Tsou <tom.tsou@ettus.com>2017-03-30 17:22:58 -0700
committerTom Tsou <tom@tsou.cc>2017-05-19 17:25:44 +0000
commitd6ae8648fff2b0fa6e20ec474a22fd7b33be7704 (patch)
tree2c0a93669a467e029f8e2bc9e4da6ae3885b7721 /Transceiver52M/sigProcLib.cpp
parente51a8f029e1f691ee3c33d893e8b45a94e5d7bae (diff)
radioInterface: Remove UmTRX 'diversity' option
The 'diversity' option was an experimental 2 antenna receiver implementation for UmTRX. The implementation has not been maintained and current working status is unknown. In addition to code rot, Coverity is triggering errors in the associated code sections. Removal of code cleans up many cases of special handling that were necessary to accommodate the implementation. Change-Id: I46752ccf5dbcffbec806081dec03e69a0fbdcdb7
Diffstat (limited to 'Transceiver52M/sigProcLib.cpp')
-rw-r--r--Transceiver52M/sigProcLib.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/Transceiver52M/sigProcLib.cpp b/Transceiver52M/sigProcLib.cpp
index c09047b..c51d094 100644
--- a/Transceiver52M/sigProcLib.cpp
+++ b/Transceiver52M/sigProcLib.cpp
@@ -654,51 +654,6 @@ static PulseSequence *generateGSMPulse(int sps)
return pulse;
}
-signalVector* frequencyShift(signalVector *y,
- signalVector *x,
- float freq,
- float startPhase,
- float *finalPhase)
-{
-
- if (!x) return NULL;
-
- if (y==NULL) {
- y = new signalVector(x->size());
- y->isReal(x->isReal());
- if (y==NULL) return NULL;
- }
-
- if (y->size() < x->size()) return NULL;
-
- float phase = startPhase;
- signalVector::iterator yP = y->begin();
- signalVector::iterator xPEnd = x->end();
- signalVector::iterator xP = x->begin();
-
- if (x->isReal()) {
- while (xP < xPEnd) {
- (*yP++) = expjLookup(phase)*( (xP++)->real() );
- phase += freq;
- }
- }
- else {
- while (xP < xPEnd) {
- (*yP++) = (*xP++)*expjLookup(phase);
- phase += freq;
- if (phase > 2 * M_PI)
- phase -= 2 * M_PI;
- else if (phase < -2 * M_PI)
- phase += 2 * M_PI;
- }
- }
-
-
- if (finalPhase) *finalPhase = phase;
-
- return y;
-}
-
signalVector* reverseConjugate(signalVector *b)
{
signalVector *tmp = new signalVector(b->size());