mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-11-19 21:38:08 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user