radioInterface: Initialize power scale with a meaningful default.

Right now if you forget to send "POWER" control command, osmo-trx
will transmitt zeros. This is counter-intuitive and I've spent several
hours debugging this "issue". The issue may happen easily, because
osmo-bts doesn't send "POWER" command if there is no "power" setting
in the configuration file. Given that "POWER" command actually sets
attenuation, it's percieved as optional and in absence of it should
default to "POWER 0" (no attenuation), which translates to power
scale being 1.0.

Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
This commit is contained in:
Alexander Chemeris 2016-06-18 11:16:54 +03:00 committed by Tom Tsou
parent 1ba69e7762
commit 19174f581b
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ bool RadioInterface::init(int type)
convertSendBuffer[i] = new short[sendBuffer[i]->size() * 2];
convertRecvBuffer[i] = new short[recvBuffer[i]->size() * 2];
powerScaling[i] = 1.0;
}
sendCursor = 0;