Missed some stuff. Suggested by Chris Newman

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6402 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl
2013-09-05 05:49:56 +00:00
parent f610e7a270
commit 9757b7bc1e

View File

@@ -44,8 +44,8 @@
using namespace std;
ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db");
ConfigurationKeyMap getConfigurationKeys();
ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db", 0, getConfigurationKeys());
volatile bool gbShutdown = false;
static void ctrlCHandler(int signo)
@@ -139,3 +139,38 @@ int main(int argc, char *argv[])
delete trx;
// delete radio;
}
ConfigurationKeyMap getConfigurationKeys()
{
ConfigurationKeyMap map;
ConfigurationKey *tmp;
tmp = new ConfigurationKey("TRX.RadioFrequencyOffset","128",
"~170Hz steps",
ConfigurationKey::FACTORY,
ConfigurationKey::VALRANGE,
"96:160",// educated guess
true,
"Fine-tuning adjustment for the transceiver master clock. "
"Roughly 170 Hz/step. "
"Set at the factory. "
"Do not adjust without proper calibration."
);
map[tmp->getName()] = *tmp;
delete tmp;
tmp = new ConfigurationKey("TRX.TxAttenOffset","0",
"dB of attenuation",
ConfigurationKey::FACTORY,
ConfigurationKey::VALRANGE,
"0:100",// educated guess
true,
"Hardware-specific gain adjustment for transmitter, matched to the power amplifier, expessed as an attenuationi in dB. "
"Set at the factory. "
"Do not adjust without proper calibration."
);
map[tmp->getName()] = *tmp;
delete tmp;
return map;
}