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
This commit is contained in:
Tom Tsou
2017-03-30 17:22:58 -07:00
committed by Tom Tsou
parent e51a8f029e
commit d6ae8648ff
9 changed files with 16 additions and 406 deletions

View File

@@ -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());